[libc-commits] [libc] [libc] Find Python 3 in standalone (PR #118871)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Dec 10 09:40:06 PST 2024
================
@@ -8,6 +8,13 @@ endif()
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
NO_POLICY_SCOPE)
+# If we are not building as a part of LLVM, build libc as an
+# standalone project, using LLVM as an external library:
+if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+ project(libc)
+ set(LIBC_BUILT_STANDALONE TRUE)
+endif()
----------------
nickdesaulniers wrote:
I think a warning (or error) would be a very user-friendly feature to add. Then we can point users in the right direction if they make a mistake.
https://github.com/llvm/llvm-project/pull/118871
More information about the libc-commits
mailing list