From 83e4078d9c9902ee184955817a0fae0320a54b53 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 19 Feb 2022 20:14:57 +0100 Subject: cmake: Strip Release binaries when building with gcc. Change-Id: Iaf87d6b65a38b6d0ecb66c5cb8bc7164741d7419 --- utils/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 6aa419ada2..fbf7ad45ae 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -35,6 +35,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") endif() elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") add_compile_options(-Wall -Wextra) + add_link_options($<$:-s>) endif() -- cgit v1.2.3