[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:47:05 PDT 2024


https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/88657

>From 17233398bd70ef0c683f527c008f27134642c497 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..1bc4a67294f2a7 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> -DLLVM_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