riscv/clang: Use integrated as
When not using integrated as, clang generates %got_pcrel_hi relocs which are not supported by any currently released version of binutils. Signed-off-by: Stefan O'Rear <sorear@fastmail.com>
This commit is contained in:
parent
e1c5674d36
commit
aa33f87cc5
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ set(CMAKE_CXX_COMPILER_TARGET ${TRIPLE})
|
|||
|
||||
string(APPEND c_common_flags " -Qunused-arguments")
|
||||
string(APPEND c_common_flags " -Wno-constant-logical-operand")
|
||||
string(APPEND c_common_flags " -fno-integrated-as")
|
||||
if(NOT ("${TRIPLE}" MATCHES "^riscv"))
|
||||
string(APPEND c_common_flags " -fno-integrated-as")
|
||||
endif()
|
||||
# clang 11 has a regression in GlobalISel (only used at -O0) affecting the syscall
|
||||
# stubs in libsel4runtime; see https://reviews.llvm.org/D83384#2189132
|
||||
string(APPEND c_common_flags " -fno-experimental-isel")
|
||||
|
|
|
|||
Loading…
Reference in a new issue