diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-06-13 09:39:54 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-06-13 09:39:54 +0200 |
commit | c0ad029a08c5ebe00ace08955eb83944071aaf11 (patch) | |
tree | 4143e72a304db48ac5cbd0c5d59789e6111dad81 | |
parent | 1143dfb9cde844325f0ffdb3796ba187c2242376 (diff) | |
download | libnitrokey-c0ad029a08c5ebe00ace08955eb83944071aaf11.tar.gz libnitrokey-c0ad029a08c5ebe00ace08955eb83944071aaf11.tar.bz2 |
Commentsize-optimization
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 82cd251..8b01771 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) include(GNUInstallDirs) +# Add -O0 to remove optimizations when using gcc set(ADD_FLAGS "-Os -s -fno-rtti") IF(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") |