add patching for rust flags #120

Merged
anonfunc merged 2 commits from RubenKelevra/ALHP.GO:feat/rust_flags into master 2022-06-15 11:38:15 +02:00
Contributor

Fixes #110

Fixes #110
RubenKelevra added 1 commit 2022-05-18 01:55:52 +02:00
RubenKelevra force-pushed feat/rust_flags from 1b25b863cc to be46f92cbe 2022-05-18 14:33:47 +02:00 Compare
Urgau reviewed 2022-06-10 16:26:33 +02:00
utils.go Outdated
@ -734,0 +734,4 @@
// enable rust flags and patch them
makepkgStr = strings.ReplaceAll(makepkgStr, "#RUSTFLAGS=", "RUSTFLAGS=")
makepkgStr = strings.ReplaceAll(makepkgStr, "-C opt-level=2", "-C opt-level=3")
makepkgStr = strings.ReplaceAll(makepkgStr, "-C opt-level=3", "-C opt-level=3 -C target-cpu="+march+" -C lto=fat -C codegen-units=1 -C strip=symbols -Z tune-cpu=generic -C linker-plugin-lto")
First-time contributor

-Z options are unstable rustc options that require the use of the nightly toolchain and given that -Ztune-cpu=generic isn't strictly required, I would recommand not using it or any other unstable options.

`-Z` options are unstable `rustc` options that require the use of the `nightly` toolchain and given that `-Ztune-cpu=generic` isn't strictly required, I would recommand not using it or any other unstable options.
Author
Contributor

Ah yeah, it's just a null flag in this instance anyway. I have removed it from my own configuration in the meantime. Will do the same here. Thanks for pointing this out!

Ah yeah, it's just a null flag in this instance anyway. I have removed it from my own configuration in the meantime. Will do the same here. Thanks for pointing this out!
RubenKelevra marked this conversation as resolved
RubenKelevra added 1 commit 2022-06-14 10:20:55 +02:00
20ea64acdc remove cpu tune flag
Signed-off-by: RubenKelevra <rubenkelevra@git.harting.dev>
Author
Contributor

@anonfunc could you give this a review? :)

@anonfunc could you give this a review? :)
Owner

Sorry it took so long, work is very busy currently. I wanted to wait until I reworked how flags are added, but I can also port them over as soon as I get to that, so lets merge this.

Sorry it took so long, work is very busy currently. I wanted to wait until I reworked how flags are added, but I can also port them over as soon as I get to that, so lets merge this.
anonfunc merged commit 5f0ba49868 into master 2022-06-15 11:38:15 +02:00
Sign in to join this conversation.
No description provided.