From 80cf0768068647d00b3a5a4eefcfcb2e26996023 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Wed, 10 Feb 2021 19:04:00 +0000 Subject: [PATCH] march-native --- iglupkg.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iglupkg.sh b/iglupkg.sh index b38cfc2..83cdfbf 100755 --- a/iglupkg.sh +++ b/iglupkg.sh @@ -1,10 +1,13 @@ #!/bin/sh export JOBS="64" -export RUSTFLAGS="-C target-feature=-crt-static" +export RUSTFLAGS="-C target-cpu=native" export CC=clang export CXX=clang++ +export CFLAGS="-march=native" +export CXXFLAGS="-march=native" + stat /etc/iglupkg.conf > /dev/null 2> /dev/null && . /etc/iglupkg.conf export SAMUFLAGS=-j$JOBS