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 <mped@oticon.com>
This commit is contained in:
Mark Ruvald Pedersen 2019-02-19 14:17:02 +01:00 committed by Anas Nashif
commit efb50e7af2

View file

@ -173,8 +173,6 @@ zephyr_compile_options(
zephyr_compile_options( zephyr_compile_options(
$<$<COMPILE_LANGUAGE:CXX>:-std=${STD_CPP_DIALECT}> $<$<COMPILE_LANGUAGE:CXX>:-std=${STD_CPP_DIALECT}>
$<$<COMPILE_LANGUAGE:CXX>:-fcheck-new> $<$<COMPILE_LANGUAGE:CXX>:-fcheck-new>
$<$<COMPILE_LANGUAGE:CXX>:-ffunction-sections>
$<$<COMPILE_LANGUAGE:CXX>:-fdata-sections>
$<$<COMPILE_LANGUAGE:ASM>:-xassembler-with-cpp> $<$<COMPILE_LANGUAGE:ASM>:-xassembler-with-cpp>
$<$<COMPILE_LANGUAGE:ASM>:-D_ASMLANGUAGE> $<$<COMPILE_LANGUAGE:ASM>:-D_ASMLANGUAGE>