Skip to content

Commit

Permalink
Merge pull request #202687 from thiagokokada/remove-march-native
Browse files Browse the repository at this point in the history
treewide: remove -march=native
  • Loading branch information
thiagokokada authored Nov 24, 2022
2 parents 20193b6 + 93c50a2 commit 47533b8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pkgs/applications/misc/glava/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ in
substituteInPlace Makefile \
--replace 'unknown' 'v${version}'
export CFLAGS="-march=native"
'';

makeFlags = optional (!enableGlfw) "DISABLE_GLFW=1";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/opentrack/aruco.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/opentrack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/mlv-app/aarch64-flags.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 47533b8

Please sign in to comment.