Skip to content

Commit d4a8498

Browse files
jhuber6GeorgeARM
authored andcommitted
[libc] Make sure we use the right linker for bitcode linking
Summary: We need to use the default arguments to ensure this uses the right linker for the toolchain given cross-compiling contexts.
1 parent 7724540 commit d4a8498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/cmake/modules/LLVMLibCLibraryRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function(add_bitcode_entrypoint_library target_name base_target_name)
112112
endforeach()
113113

114114
add_executable(${target_name} ${objects})
115-
target_link_options(${target_name} PRIVATE
115+
target_link_options(${target_name} PRIVATE "${LIBC_COMPILE_OPTIONS_DEFAULT}"
116116
"-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm")
117117
endfunction(add_bitcode_entrypoint_library)
118118

0 commit comments

Comments
 (0)