diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff | |
Diffstat (limited to 'vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff')
| -rw-r--r-- | vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff b/vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff new file mode 100644 index 0000000..94a125c --- /dev/null +++ b/vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0acd26f..218c48b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -61,7 +61,6 @@ if(NOT LIBDEFLATE_BUILD_STATIC_LIB) + endif() + + # Set common C compiler flags for all targets (the library and the programs). +-set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") + set(CMAKE_C_STANDARD 99) + if(NOT MSVC) + check_c_compiler_flag(-Wdeclaration-after-statement HAVE_WDECLARATION_AFTER_STATEMENT) |