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:
parent
26e562c0bd
commit
efb50e7af2
1 changed files with 0 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue