Merge pull request #202687 from thiagokokada/remove-march-native

treewide: remove -march=native
This commit is contained in:
Thiago Kenji Okada 2022-11-24 15:23:42 +00:00 committed by GitHub
commit 47533b85af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 5 deletions

View File

@ -55,8 +55,6 @@ in
substituteInPlace Makefile \
--replace 'unknown' 'v${version}'
export CFLAGS="-march=native"
'';
makeFlags = optional (!enableGlfw) "DISABLE_GLFW=1";

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation {
buildInputs = [ opencv4 ];
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3";
preInstall = ''
mkdir -p $out/include/aruco

View File

@ -42,7 +42,7 @@ in
nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems];
buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco];
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3";
NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3";
dontWrapQtApps = true;
cmakeFlags = [

View File

@ -7,7 +7,7 @@ index ebdc552..3e37573 100644
# Linux
linux-g++*{
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99
+ QMAKE_CFLAGS += -O3 -fopenmp -march=native -std=c99
+ QMAKE_CFLAGS += -O3 -fopenmp -std=c99
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp
}