mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-08 20:04:02 +00:00
libclc: Compile with -nostdlib
This fixes a build error when compiling for amdgcn-amd-amdhsa, which defaults to trying to link bitcode libraries.
This commit is contained in:
parent
1a9e0d7092
commit
cf4d4e366a
@ -262,7 +262,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
|
||||
target_compile_definitions( builtins.link.${arch_suffix} PRIVATE
|
||||
"__CLC_INTERNAL" )
|
||||
target_compile_options( builtins.link.${arch_suffix} PRIVATE -target
|
||||
${t} ${mcpu} -fno-builtin )
|
||||
${t} ${mcpu} -fno-builtin -nostdlib )
|
||||
set_target_properties( builtins.link.${arch_suffix} PROPERTIES
|
||||
LINKER_LANGUAGE CLC )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user