Skip to content

Commit fda04b1

Browse files
authored
[libc] Replace mentions of LIBC_FULLBUILD with LLVM_LIBC_FULL_BUILD in 'examples/' (#88657)
Resolves #88328
1 parent 4f88c23 commit fda04b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libc/examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ have installed them, you have to inform CMake that we are linking against the
5959
full libc as follows:
6060

6161
```bash
62-
cmake ../ -G <GEN> -DLIBC_FULLBUILD=ON \
62+
cmake ../ -G <GEN> -DLLVM_LIBC_FULL_BUILD=ON \
6363
-DCMAKE_SYSROOT=<SYSROOT> \
6464
-DCMAKE_C_COMPILER=<SYSROOT>/bin/clang \
6565
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY

libc/examples/examples.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ function(add_example name)
44
${ARGN}
55
)
66

7-
if(LIBC_FULLBUILD)
7+
if(LLVM_LIBC_FULL_BUILD)
88
target_link_options(${name} PRIVATE -static -rtlib=compiler-rt -fuse-ld=lld)
99
elseif(LIBC_OVERLAY_ARCHIVE_DIR)
1010
target_link_directories(${name} PRIVATE ${LIBC_OVERLAY_ARCHIVE_DIR})
1111
target_link_options(${name} PRIVATE -l:libllvmlibc.a)
1212
else()
13-
message(FATAL_ERROR "Either LIBC_FULLBUILD should be on or "
13+
message(FATAL_ERROR "Either LLVM_LIBC_FULL_BUILD should be on or "
1414
"LIBC_OVERLAY_ARCHIVE_DIR should be set.")
1515
endif()
1616
endfunction()

0 commit comments

Comments
 (0)