diff options
Diffstat (limited to 'vcpkg/ports/nvtt/add-compile-options-for-osx.patch')
| -rw-r--r-- | vcpkg/ports/nvtt/add-compile-options-for-osx.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/nvtt/add-compile-options-for-osx.patch b/vcpkg/ports/nvtt/add-compile-options-for-osx.patch new file mode 100644 index 0000000..6b7d945 --- /dev/null +++ b/vcpkg/ports/nvtt/add-compile-options-for-osx.patch @@ -0,0 +1,15 @@ +diff --git a/src/nvtt/CMakeLists.txt b/src/nvtt/CMakeLists.txt
+index 9688c9c..42942c0 100644
+--- a/src/nvtt/CMakeLists.txt
++++ b/src/nvtt/CMakeLists.txt
+@@ -47,6 +47,10 @@ ADD_DEFINITIONS(-DNVTT_EXPORTS)
+ #ADD_DEFINITIONS(-DHAVE_RGETC)
+ #ADD_DEFINITIONS(-DHAVE_ETCPACK)
+
++if(APPLE)
++ add_compile_options(-mbmi2 -mfma)
++endif()
++
+ IF(NVTT_SHARED)
+ ADD_LIBRARY(nvtt SHARED ${NVTT_SRCS})
+ ELSE(NVTT_SHARED)
|