Rust -o(pt-level) 3 and -target-cpu=x86_64_x? #110
Labels
No Label
blocked upstream
bug
build-failure
duplicate
enhancement
help wanted
informational
invalid
invalid/corrupt package
packaging issue
priority: high
question
support
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ALHP/ALHP.GO#110
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was wondering if ALHP already sets the Rust-flags
-opt-level=3
and-target-cpu=?
?Not sure what values are supported on target-cpu except for generic and native as I just use native on my machines.
I was looking through the lto options as well, looks like there need to be these set?
"-C lto=fat -C codegen-units=1 -C linker-plugin-lto"
Probably most packages already set LTO to on (seen this in the Firefox MAKEPKG) so not sure if that's necessary at all.
LTO is handled mostly by upstream now. Not sure about
-target-cpu
, but at least-opt-level
seems to be set correctly with our current flag configuration.@anonfunc can you paste how the current makepkg.conf looks after patching?
Looking at the source code I can't see where the correct -opt-level would come from.
This should patch the rust flags (and ignore the opt-level if it's already on 3):
https://git.harting.dev/ALHP/ALHP.GO/pulls/120
Give it a thorough look, as I'm not that familiar with go (and your program) :)