summaryrefslogtreecommitdiff
path: root/misc/astc-encoder/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/astc-encoder/files')
-rw-r--r--misc/astc-encoder/files/patch-Source_cmake__core.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/astc-encoder/files/patch-Source_cmake__core.cmake b/misc/astc-encoder/files/patch-Source_cmake__core.cmake
new file mode 100644
index 000000000000..475a3338494d
--- /dev/null
+++ b/misc/astc-encoder/files/patch-Source_cmake__core.cmake
@@ -0,0 +1,19 @@
+--- Source/cmake_core.cmake.orig 2024-11-15 11:22:40 UTC
++++ Source/cmake_core.cmake
+@@ -170,7 +170,6 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCE
+ $<${is_gnu_fe}:-Wall>
+ $<${is_gnu_fe}:-Wextra>
+ $<${is_gnu_fe}:-Wpedantic>
+- $<${is_gnu_fe}:-Werror>
+ $<${is_gnu_fe}:-Wshadow>
+ $<${is_gnu_fe}:-Wdouble-promotion>
+ $<${is_clang}:-Wdocumentation>
+@@ -449,8 +448,6 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCE
+ else()
+ target_compile_options(${ASTCENC_TARGET_NAME}
+ PRIVATE
+- $<${is_clangcl}:-mcpu=native -march=native>
+- $<${is_gnu_fe}:-mcpu=native -march=native>
+ $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
+ endif()
+ endif()