[libc-commits] [libc] [libc] Fail fast when building standalone (PR #119426)
Carlo Cabrera via libc-commits
libc-commits at lists.llvm.org
Tue Dec 10 10:11:55 PST 2024
================
@@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 3.20.0)
set(LLVM_SUBPROJECT_TITLE "libc")
+if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+ message(FATAL_ERROR "Builds rooted in the libc directory are not supported. "
----------------
carlocab wrote:
Seems nicer to me to error out, but I'm open to changing this to a warning instead.
https://github.com/llvm/llvm-project/pull/119426
More information about the libc-commits
mailing list