Skip to content

Commit dc5c97d

Browse files
use cxx_flag to avoid failing
1 parent 055ae40 commit dc5c97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/startup/linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function(add_startup_object name)
7070
)
7171
endfunction()
7272

73-
llvm_check_linker_flag(CXX "-r" LIBC_LINKER_SUPPORTS_RELOCATABLE)
73+
check_cxx_compiler_flag("-r" LIBC_LINKER_SUPPORTS_RELOCATABLE)
7474

7575
if(NOT LIBC_LINKER_SUPPORTS_RELOCATABLE)
7676
message(STATUS "Skipping startup for target architecture ${LIBC_TARGET_ARCHITECTURE}: linker does not support -r")

0 commit comments

Comments
 (0)