[libc-commits] [libc] [libc] Replace mentions of `LIBC_FULLBUILD` with `LLVM_LIBC_FULL_BUILD` in 'examples/' (PR #88657)
Rajveer Singh Bharadwaj via libc-commits
libc-commits at lists.llvm.org
Sun Apr 14 05:40:27 PDT 2024
https://github.com/Rajveer100 created https://github.com/llvm/llvm-project/pull/88657
Resolves #88328
>From 3f680769fd317ba723720c359330361e01ae2ca9 Mon Sep 17 00:00:00 2001
From: Rajveer <rajveer.developer at icloud.com>
Date: Sun, 14 Apr 2024 18:07:31 +0530
Subject: [PATCH] [libc] Replace mentions of `LIBC_FULLBUILD` with
`LLVM_LIBC_FULL_BUILD` in 'examples/'
Resolves #88328
---
libc/examples/README.md | 2 +-
libc/examples/examples.cmake | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libc/examples/README.md b/libc/examples/README.md
index 36b886090c6c1c..f3fb45b84f7f72 100644
--- a/libc/examples/README.md
+++ b/libc/examples/README.md
@@ -59,7 +59,7 @@ have installed them, you have to inform CMake that we are linking against the
full libc as follows:
```bash
-cmake ../ -G <GEN> -DLIBC_FULLBUILD=ON \
+cmake ../ -G <GEN> -LLVM_LIBC_FULL_BUILD=ON \
-DCMAKE_SYSROOT=<SYSROOT> \
-DCMAKE_C_COMPILER=<SYSROOT>/bin/clang \
-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
diff --git a/libc/examples/examples.cmake b/libc/examples/examples.cmake
index 81e99e3cbede9c..6bb6b41c252f5b 100644
--- a/libc/examples/examples.cmake
+++ b/libc/examples/examples.cmake
@@ -4,13 +4,13 @@ function(add_example name)
${ARGN}
)
- if(LIBC_FULLBUILD)
+ if(LLVM_LIBC_FULL_BUILD)
target_link_options(${name} PRIVATE -static -rtlib=compiler-rt -fuse-ld=lld)
elseif(LIBC_OVERLAY_ARCHIVE_DIR)
target_link_directories(${name} PRIVATE ${LIBC_OVERLAY_ARCHIVE_DIR})
target_link_options(${name} PRIVATE -l:libllvmlibc.a)
else()
- message(FATAL_ERROR "Either LIBC_FULLBUILD should be on or "
+ message(FATAL_ERROR "Either LLVM_LIBC_FULL_BUILD should be on or "
"LIBC_OVERLAY_ARCHIVE_DIR should be set.")
endif()
endfunction()
More information about the libc-commits
mailing list