diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-30 18:48:41 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 10:55:15 -0800 |
| commit | fe28c0216e61770b6b1adb6886f74e40dac9e529 (patch) | |
| tree | f077df73a8820ff316a019a294978a9a3ae892c5 | |
| parent | 175ff0951a42f6111d8c96f8397f3329f4e463e4 (diff) | |
| download | zlib-fe28c0216e61770b6b1adb6886f74e40dac9e529.tar.gz zlib-fe28c0216e61770b6b1adb6886f74e40dac9e529.tar.bz2 zlib-fe28c0216e61770b6b1adb6886f74e40dac9e529.zip | |
CMake: Filter out optimisation flags for the ada binder.
| -rw-r--r-- | contrib/ada/cmake/binder_helper.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ada/cmake/binder_helper.cmake b/contrib/ada/cmake/binder_helper.cmake index cc70d7c..87b3202 100644 --- a/contrib/ada/cmake/binder_helper.cmake +++ b/contrib/ada/cmake/binder_helper.cmake | |||
| @@ -18,6 +18,12 @@ foreach(arg RANGE 5 ${CMAKE_ARGC}) | |||
| 18 | continue() | 18 | continue() |
| 19 | endif(CMAKE_ARGV${arg} STREQUAL FLAGS) | 19 | endif(CMAKE_ARGV${arg} STREQUAL FLAGS) |
| 20 | 20 | ||
| 21 | string(SUBSTRING "${CMAKE_ARGV${arg}}" 0 2 start) | ||
| 22 | |||
| 23 | if(start STREQUAL "-O") | ||
| 24 | continue() | ||
| 25 | endif(start STREQUAL "-O") | ||
| 26 | |||
| 21 | if(REACHED_FLAGS) | 27 | if(REACHED_FLAGS) |
| 22 | list(APPEND FLAGS ${CMAKE_ARGV${arg}}) | 28 | list(APPEND FLAGS ${CMAKE_ARGV${arg}}) |
| 23 | endif(REACHED_FLAGS) | 29 | endif(REACHED_FLAGS) |
