summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-10-12 20:26:04 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-10-12 20:26:04 +0200
commitc86bfa2a994e505036f9b9aff12a1b1d6f39ce8a (patch)
tree08aecc18df8554cc6c774cb82bdfb996c025c663
parenta64572201c367286d7932cc725779cb023ce09b0 (diff)
downloadpackages-c86bfa2a994e505036f9b9aff12a1b1d6f39ce8a.tar.xz
community/embree: added patch for adding ISA switches to 32-bit compilation
-rw-r--r--community/embree/PKGBUILD7
-rw-r--r--community/embree/embree-2.16.4-32bit-compile-flags.patch35
2 files changed, 42 insertions, 0 deletions
diff --git a/community/embree/PKGBUILD b/community/embree/PKGBUILD
new file mode 100644
index 00000000..84d0c570
--- /dev/null
+++ b/community/embree/PKGBUILD
@@ -0,0 +1,7 @@
+source+=('embree-2.16.4-32bit-compile-flags.patch')
+md5sums+=('153744f2310f060ed5e0627e2593f40b')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i $srcdir/embree-2.16.4-32bit-compile-flags.patch
+}
diff --git a/community/embree/embree-2.16.4-32bit-compile-flags.patch b/community/embree/embree-2.16.4-32bit-compile-flags.patch
new file mode 100644
index 00000000..02461917
--- /dev/null
+++ b/community/embree/embree-2.16.4-32bit-compile-flags.patch
@@ -0,0 +1,35 @@
+diff -rauN embree-2.16.4/common/algorithms/CMakeLists.txt embree-2.16.4-32bit-compile-flags/common/algorithms/CMakeLists.txt
+--- embree-2.16.4/common/algorithms/CMakeLists.txt 2017-06-28 15:11:17.000000000 +0200
++++ embree-2.16.4-32bit-compile-flags/common/algorithms/CMakeLists.txt 2017-10-12 19:37:01.900000000 +0200
+@@ -28,5 +28,6 @@
+ )
+
+ SET_PROPERTY(TARGET algorithms PROPERTY FOLDER common)
++SET_TARGET_PROPERTIES(algorithms PROPERTIES COMPILE_FLAGS "${FLAGS_LOWEST}")
+
+
+diff -rauN embree-2.16.4/common/simd/CMakeLists.txt embree-2.16.4-32bit-compile-flags/common/simd/CMakeLists.txt
+--- embree-2.16.4/common/simd/CMakeLists.txt 2017-06-28 15:11:17.000000000 +0200
++++ embree-2.16.4-32bit-compile-flags/common/simd/CMakeLists.txt 2017-10-12 19:37:11.450000002 +0200
+@@ -16,4 +16,5 @@
+
+ ADD_LIBRARY(simd STATIC sse.cpp)
+ SET_PROPERTY(TARGET simd PROPERTY FOLDER common)
++SET_TARGET_PROPERTIES(simd PROPERTIES COMPILE_FLAGS "${FLAGS_LOWEST}")
+
+diff -rauN embree-2.16.4/common/sys/CMakeLists.txt embree-2.16.4-32bit-compile-flags/common/sys/CMakeLists.txt
+--- embree-2.16.4/common/sys/CMakeLists.txt 2017-06-28 15:11:17.000000000 +0200
++++ embree-2.16.4-32bit-compile-flags/common/sys/CMakeLists.txt 2017-10-12 19:37:23.356666640 +0200
+@@ -33,3 +33,4 @@
+
+ TARGET_LINK_LIBRARIES(sys ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
+ SET_PROPERTY(TARGET sys PROPERTY FOLDER common)
++SET_TARGET_PROPERTIES(sys PROPERTIES COMPILE_FLAGS "${FLAGS_LOWEST}")
+diff -rauN embree-2.16.4/common/tasking/CMakeLists.txt embree-2.16.4-32bit-compile-flags/common/tasking/CMakeLists.txt
+--- embree-2.16.4/common/tasking/CMakeLists.txt 2017-06-28 15:11:17.000000000 +0200
++++ embree-2.16.4-32bit-compile-flags/common/tasking/CMakeLists.txt 2017-10-12 19:38:17.819999991 +0200
+@@ -29,3 +29,4 @@
+ ENDIF()
+
+ SET_PROPERTY(TARGET tasking PROPERTY FOLDER common)
++SET_TARGET_PROPERTIES(tasking PROPERTIES COMPILE_FLAGS "${FLAGS_LOWEST}")