pineapple-src/externals/vcpkg/ports/nvtt/add-compile-options-for-osx.patch

16 lines
428 B
Diff
Raw Normal View History

2022-07-22 21:01:36 -04:00
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)