mlv-app: fix aarch64 patch
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
ede6eeb315
commit
14b06b7b7d
@ -2,12 +2,12 @@ diff --git a/platform/qt/MLVApp.pro b/platform/qt/MLVApp.pro
|
|||||||
index ebdc552..3e37573 100644
|
index ebdc552..3e37573 100644
|
||||||
--- a/platform/qt/MLVApp.pro
|
--- a/platform/qt/MLVApp.pro
|
||||||
+++ b/platform/qt/MLVApp.pro
|
+++ b/platform/qt/MLVApp.pro
|
||||||
@@ -84,7 +84,7 @@ win32{
|
@@ -120,7 +120,7 @@ win32{
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
linux-g++*{
|
linux-g++*{
|
||||||
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99
|
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99 -ftree-vectorize
|
||||||
+ QMAKE_CFLAGS += -O3 -fopenmp -std=c99
|
+ QMAKE_CFLAGS += -O3 -fopenmp -std=c99 -ftree-vectorize
|
||||||
QMAKE_CXXFLAGS += -fopenmp
|
QMAKE_CXXFLAGS += -fopenmp -std=c++11 -ftree-vectorize
|
||||||
LIBS += -lgomp
|
LIBS += -lgomp
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,10 @@ mkDerivation rec {
|
|||||||
sha256 = "sha256-RfZXHmWSjZBxNFwQ/bzHppsLS0LauURIdnkAzxAIBcU=";
|
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 = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
Loading…
Reference in New Issue
Block a user