Skip to content

Commit

Permalink
mlv-app: fix aarch64 patch (#352995)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Nov 2, 2024
2 parents 1f49286 + 14b06b7 commit 7b1cffd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/video/mlv-app/aarch64-flags.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ diff --git a/platform/qt/MLVApp.pro b/platform/qt/MLVApp.pro
index ebdc552..3e37573 100644
--- a/platform/qt/MLVApp.pro
+++ b/platform/qt/MLVApp.pro
@@ -84,7 +84,7 @@ win32{
@@ -120,7 +120,7 @@ win32{

# Linux
linux-g++*{
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99
+ QMAKE_CFLAGS += -O3 -fopenmp -std=c99
QMAKE_CXXFLAGS += -fopenmp
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99 -ftree-vectorize
+ QMAKE_CFLAGS += -O3 -fopenmp -std=c99 -ftree-vectorize
QMAKE_CXXFLAGS += -fopenmp -std=c++11 -ftree-vectorize
LIBS += -lgomp
}
5 changes: 4 additions & 1 deletion pkgs/applications/video/mlv-app/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ mkDerivation rec {
sha256 = "sha256-RfZXHmWSjZBxNFwQ/bzHppsLS0LauURIdnkAzxAIBcU=";
};

patches = if stdenv.hostPlatform.isAarch64 then ./aarch64-flags.patch else null;
patches = lib.optionals stdenv.hostPlatform.isAarch64 [
# remove optimization flags with x86 only instruction sets
./aarch64-flags.patch
];

installPhase = ''
runHook preInstall
Expand Down

0 comments on commit 7b1cffd

Please sign in to comment.