diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-05-26 17:03:20 -0400 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2020-05-28 10:41:31 -0400 |
commit | cf4d4e366a2165f0e93948f166d76ae650aecc98 (patch) | |
tree | b8639fa3deca516f40d90acc823f1c7b8b61024d /libclc | |
parent | 1a9e0d7092145e33175f628f4cdd28acf0d17100 (diff) | |
download | llvm-cf4d4e366a2165f0e93948f166d76ae650aecc98.tar.gz |
libclc: Compile with -nostdlib
This fixes a build error when compiling for amdgcn-amd-amdhsa, which
defaults to trying to link bitcode libraries.
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index 7b981110f6fd..9472f191fbde 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -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 ) |