Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jD91mZM2
kernel
Commits
895c0c11
Verified
Commit
895c0c11
authored
4 years ago
by
jD91mZM2
Browse files
Options
Downloads
Patches
Plain Diff
Use cargo for lto over manually entering rustflags
parent
fbeb2979
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cargo/config
+4
-1
4 additions, 1 deletion
.cargo/config
Cargo.toml
+10
-0
10 additions, 0 deletions
Cargo.toml
with
14 additions
and
1 deletion
.cargo/config
+
4
−
1
View file @
895c0c11
[build]
[build]
rustflags = ["-Cembed-bitcode=yes"]
rustflags = [
# Kernel should preserve floating-point registers
"-Csoft-float",
]
This diff is collapsed.
Click to expand it.
Cargo.toml
+
10
−
0
View file @
895c0c11
...
@@ -44,3 +44,13 @@ qemu_debug = []
...
@@ -44,3 +44,13 @@ qemu_debug = []
serial_debug
=
[]
serial_debug
=
[]
system76_ec_debug
=
[]
system76_ec_debug
=
[]
slab
=
[
"slab_allocator"
]
slab
=
[
"slab_allocator"
]
[profile.dev]
# Kernel doesn't yet work great with debug mode :(
opt-level
=
3
# LTO fixes some duplicate symbols of memcpy/memmove/etc
lto
=
true
[profile.release]
lto
=
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment