Sfoglia il codice sorgente

zstd: Disable BMI2 instructions for build within CMake

Our nightly and release binaries build in an environment that does not
support these instructions.  Disable them everywhere for simplicity
because CMake's application of this library is not performance-critical.
Brad King 6 anni fa
parent
commit
80af3ddea7
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Utilities/cmzstd/CMakeLists.txt

+ 3 - 0
Utilities/cmzstd/CMakeLists.txt

@@ -41,4 +41,7 @@ add_library(cmzstd STATIC
   lib/dictBuilder/zdict.c
   )
 
+# BMI2 instructions are not supported in older environments.
+set_property(TARGET cmzstd PROPERTY COMPILE_DEFINITIONS DYNAMIC_BMI2=0)
+
 install(FILES LICENSE DESTINATION ${CMAKE_DOC_DIR}/cmzstd)