mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
make.sh: Set a good default for rustc flags
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
3
make.sh
3
make.sh
@@ -170,7 +170,6 @@ configure_build() {
|
|||||||
CROSSTARGET="${build_arch}-cross-linux-gnueabi"
|
CROSSTARGET="${build_arch}-cross-linux-gnueabi"
|
||||||
BUILD_PLATFORM="arm"
|
BUILD_PLATFORM="arm"
|
||||||
CFLAGS_ARCH="-march=armv6zk+fp -mfpu=vfp -mfloat-abi=softfp -fomit-frame-pointer"
|
CFLAGS_ARCH="-march=armv6zk+fp -mfpu=vfp -mfloat-abi=softfp -fomit-frame-pointer"
|
||||||
#RUSTFLAGS="-Ccodegen-units=1"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
riscv64)
|
riscv64)
|
||||||
@@ -205,6 +204,8 @@ configure_build() {
|
|||||||
CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
|
CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
|
||||||
CXXFLAGS="${CFLAGS}"
|
CXXFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
|
RUSTFLAGS="-Copt-level=3 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1 --cap-lints=warn ${RUSTFLAGS_ARCH}"
|
||||||
|
|
||||||
# Determine parallelism
|
# Determine parallelism
|
||||||
# We assume that each process consumes about
|
# We assume that each process consumes about
|
||||||
# 128MB of memory. Therefore we find out how
|
# 128MB of memory. Therefore we find out how
|
||||||
|
|||||||
Reference in New Issue
Block a user