From efb50e7af28f230acf729ffa6616b77a8288e16b Mon Sep 17 00:00:00 2001 From: Mark Ruvald Pedersen Date: Tue, 19 Feb 2019 14:17:02 +0100 Subject: [PATCH] cmake: remove redundant compiler flags for C++ The compiler flags -ffunction-sections and -fdata-sections are already universally set from arch/common/CMakeLists.txt, so we shall not set them again for C++ only. Signed-off-by: Mark Ruvald Pedersen --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbd4a132d12..2b4c348f317 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,8 +173,6 @@ zephyr_compile_options( zephyr_compile_options( $<$:-std=${STD_CPP_DIALECT}> $<$:-fcheck-new> - $<$:-ffunction-sections> - $<$:-fdata-sections> $<$:-xassembler-with-cpp> $<$:-D_ASMLANGUAGE>