xcc-clang: Do not used unavailable options
xcc-clang in based on clan-10 and does not support -fno-pic and -fno-pie. clang-10: warning: argument unused during compilation: '-fno-pic' [-Wunused-command-line-argument] [147/148] Linking C executable zephyr/zephyr.elf clang-10: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
96e988c53a
commit
8259931fce
5 changed files with 21 additions and 2 deletions
|
@ -192,3 +192,9 @@ endif()
|
|||
|
||||
# Compiler flag for disabling pointer arithmetic warnings
|
||||
set_compiler_property(PROPERTY warning_no_pointer_arithmetic "-Wno-pointer-arith")
|
||||
|
||||
#Compiler flags for disabling position independent code / executable
|
||||
set_compiler_property(PROPERTY no_position_independent
|
||||
-fno-pic
|
||||
-fno-pie
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue