compiler: arcmwdt: Remove unsupported compile flags (-fno-pic, -fno-pie)

Clang version used by ARCMWDT does not support -fno-pic and -fno-pie
flags.
Flags were added into arcmwdt branch by
commit 8259931fce ("xcc-clang: Do not used unavailable options").
Initially they were set in common CMakeLists.txt via
zephyr_cc_option() function, which filtered them out, and they
did not used in builing process.

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
This commit is contained in:
Nikolay Agishev 2022-11-16 17:40:58 +04:00 committed by Stephanos Ioannidis
parent 257df2e21c
commit 9f33342602

View File

@ -176,11 +176,9 @@ set_property(TARGET compiler-cpp PROPERTY required "-Hcplus" "-Hoff=Stackcheck_a
# Compiler flag for turning off thread-safe initialization of local statics
set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe-statics")
#Compiler flags for disabling position independent code / executable
set_compiler_property(PROPERTY no_position_independent
-fno-pic
-fno-pie
)
# ARC MWDT does not support -fno-pic and -fno-pie flags,
# but it has PIE disabled by default - so no extra flags are required here.
set_compiler_property(PROPERTY no_position_independent "")
#################################
# This section covers asm flags #