summarylogtreecommitdiffstats
path: root/020-astc-encoder-remove-flags-unsupported-by-gcc14.patch
diff options
context:
space:
mode:
authorDaniel Bermond2024-05-11 11:42:16 -0300
committerDaniel Bermond2024-05-11 11:42:16 -0300
commit722d78465a3b11ae6b98782d400f88f08def01f0 (patch)
treed19b2e1b475cf66620b6d521a3157b46a0a1d9d0 /020-astc-encoder-remove-flags-unsupported-by-gcc14.patch
parentb21513658b0e592eb0c6b4cbf716dab462617346 (diff)
downloadaur-astc-encoder-git.tar.gz
Add fix for gcc14. Update license.
Diffstat (limited to '020-astc-encoder-remove-flags-unsupported-by-gcc14.patch')
-rw-r--r--020-astc-encoder-remove-flags-unsupported-by-gcc14.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/020-astc-encoder-remove-flags-unsupported-by-gcc14.patch b/020-astc-encoder-remove-flags-unsupported-by-gcc14.patch
new file mode 100644
index 000000000000..163943db1856
--- /dev/null
+++ b/020-astc-encoder-remove-flags-unsupported-by-gcc14.patch
@@ -0,0 +1,87 @@
+--- a/Source/cmake_core.cmake
++++ b/Source/cmake_core.cmake
+@@ -169,20 +169,13 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
+ $<${is_clang}:-Wdocumentation>
+
+ # Hide noise thrown up by Clang 10 and clang-cl
+- $<${is_gnu_fe}:-Wno-unknown-warning-option>
+- $<${is_gnu_fe}:-Wno-c++98-compat-pedantic>
+- $<${is_gnu_fe}:-Wno-c++98-c++11-compat-pedantic>
+ $<${is_gnu_fe}:-Wno-float-equal>
+ $<${is_gnu_fe}:-Wno-deprecated-declarations>
+- $<${is_gnu_fe}:-Wno-atomic-implicit-seq-cst>
+
+ # Clang 10 also throws up warnings we need to investigate (ours)
+ $<${is_gnu_fe}:-Wno-cast-align>
+ $<${is_gnu_fe}:-Wno-sign-conversion>
+- $<${is_gnu_fe}:-Wno-implicit-int-conversion>
+- $<${is_gnu_fe}:-Wno-shift-sign-overflow>
+ $<${is_gnu_fe}:-Wno-format-nonliteral>
+- $<${is_gnu_fe}:-Wno-reserved-identifier>
+ $<${is_gnu_fe}:-Wno-cast-function-type>
+
+ # Force DWARF4 for Valgrind profiling
+@@ -307,7 +300,7 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
+ $<${is_clangcl}:-msse2>
+ $<${is_gnu_fe}:-msse2>
+ $<${is_gnu_fe}:-mno-sse4.1>
+- $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
++ )
+
+ elseif(${ASTCENC_ISA_SIMD} MATCHES "sse4.1")
+ target_compile_definitions(${ASTCENC_TARGET_NAME}
+@@ -324,13 +317,13 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
+ PRIVATE
+ $<${is_gnu_fe}:-msse2>
+ $<${is_gnu_fe}:-mno-sse4.1>
+- $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
++ )
+ else()
+ target_compile_options(${ASTCENC_TARGET_NAME}
+ PRIVATE
+ $<${is_clangcl}:-msse4.1 -mpopcnt>
+ $<${is_gnu_fe}:-msse4.1 -mpopcnt>
+- $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
++ )
+ endif()
+
+ elseif(${ASTCENC_ISA_SIMD} MATCHES "avx2")
+@@ -348,14 +341,14 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
+ PRIVATE
+ $<${is_gnu_fe}:-msse2>
+ $<${is_gnu_fe}:-mno-sse4.1>
+- $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
++ )
+ else()
+ target_compile_options(${ASTCENC_TARGET_NAME}
+ PRIVATE
+ $<${is_msvc_fe}:/arch:AVX2>
+ $<${is_clangcl}:-mavx2 -mpopcnt -mf16c>
+ $<${is_gnu_fe}:-mavx2 -mpopcnt -mf16c>
+- $<${is_gnu_fe}:-Wno-unused-command-line-argument>)
++ )
+ endif()
+
+ # Non-invariant builds enable us to loosen the compiler constraints on
+@@ -380,20 +373,13 @@ string(CONCAT EXTERNAL_CXX_FLAGS
+ " $<${is_gnu_fe}: -Wno-old-style-cast>"
+ " $<${is_gnu_fe}: -Wno-double-promotion>"
+ " $<${is_gnu_fe}: -Wno-zero-as-null-pointer-constant>"
+- " $<${is_gnu_fe}: -Wno-disabled-macro-expansion>"
+- " $<${is_gnu_fe}: -Wno-reserved-id-macro>"
+- " $<${is_gnu_fe}: -Wno-extra-semi-stmt>"
+ " $<${is_gnu_fe}: -Wno-implicit-fallthrough>"
+- " $<${is_gnu_fe}: -Wno-tautological-type-limit-compare>"
+ " $<${is_gnu_fe}: -Wno-cast-qual>"
+- " $<${is_gnu_fe}: -Wno-reserved-identifier>"
+ " $<${is_clang}: -Wno-missing-prototypes>"
+ " $<${is_gnu_fe}: -Wno-missing-field-initializers>"
+ " $<${is_gnu_fe}: -Wno-suggest-override>"
+- " $<${is_gnu_fe}: -Wno-used-but-marked-unused>"
+ " $<${is_gnu_fe}: -Wno-noexcept-type>"
+- " $<${is_gnu_fe}: -Wno-comma>"
+- " $<${is_gnu_fe}: -Wno-c99-extensions>")
++)
+
+ set_source_files_properties(astcenccli_image_external.cpp
+ PROPERTIES