Skip to content

Commit 086c533

Browse files
committed
Update the flag name.
1 parent d786da4 commit 086c533

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libc/cmake/modules/CheckCompilerFeatures.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ message(STATUS "Compiler features available: ${AVAILABLE_COMPILER_FEATURES}")
6464
check_cxx_compiler_flag("-ftrivial-auto-var-init=pattern" LIBC_CC_SUPPORTS_PATTERN_INIT)
6565

6666
# clang-6+, gcc-13+
67-
check_cxx_compiler_flag("-nostdlib++" LIBC_COMPILER_SUPPORT_NOSTDLIBPP)
67+
check_cxx_compiler_flag("-nostdlib++" LIBC_CC_SUPPORTS_NOSTDLIBPP)

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ function(add_libc_fuzzer target_name)
436436
endfunction(add_libc_fuzzer)
437437

438438
# Get libgcc_s to be used in hermetic and integration tests.
439-
if(NOT LIBC_COMPILER_SUPPORT_NOSTDLIBPP)
439+
if(NOT LIBC_CC_SUPPORTS_NOSTDLIBPP)
440440
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-file-name=libgcc_s.so.1
441441
OUTPUT_VARIABLE LIBGCC_S_LOCATION)
442442
string(STRIP ${LIBGCC_S_LOCATION} LIBGCC_S_LOCATION)
@@ -571,7 +571,7 @@ function(add_integration_test test_name)
571571

572572
if(LIBC_TARGET_ARCHITECTURE_IS_GPU)
573573
target_link_options(${fq_build_target_name} PRIVATE -nostdlib -static)
574-
elseif(LIBC_COMPILER_SUPPORT_NOSTDLIBPP)
574+
elseif(LIBC_CC_SUPPORTS_NOSTDLIBPP)
575575
target_link_options(${fq_build_target_name} PRIVATE -nolibc -nostartfiles -nostdlib++ -static)
576576
else()
577577
# Older version of gcc does not support `nostdlib++` flag. We use
@@ -753,7 +753,7 @@ function(add_libc_hermetic_test test_name)
753753

754754
if(LIBC_TARGET_ARCHITECTURE_IS_GPU)
755755
target_link_options(${fq_build_target_name} PRIVATE -nostdlib -static)
756-
elseif(LIBC_COMPILER_SUPPORT_NOSTDLIBPP)
756+
elseif(LIBC_CC_SUPPORTS_NOSTDLIBPP)
757757
target_link_options(${fq_build_target_name} PRIVATE -nolibc -nostartfiles -nostdlib++ -static)
758758
else()
759759
# Older version of gcc does not support `nostdlib++` flag. We use

0 commit comments

Comments
 (0)