Enable optimized build for rust and x86-v3
This commit is contained in:
parent
c82a6cc12a
commit
9857a9e5fd
1 changed files with 3 additions and 2 deletions
|
@ -15,8 +15,9 @@ CARCH="x86_64"
|
|||
CHOST="x86_64-pc-linux-gnu"
|
||||
|
||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
|
||||
CFLAGS="-march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
RUSTFLAGS="-C opt-level=3 -C target-cpu=native"
|
||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
||||
MAKEFLAGS="-j$(nproc)"
|
||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||
|
|
Loading…
Reference in a new issue