[libc-commits] [libc] [libc] Add base for target config within cmake (PR #72318)

via libc-commits libc-commits at lists.llvm.org
Tue Nov 14 17:33:04 PST 2023


================
@@ -262,6 +264,25 @@ elseif(EXISTS "${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/headers.txt")
   include("${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/headers.txt")
 endif()
 
+if(LIBC_SYSTEM_CONFIG_FILE)
----------------
lntue wrote:

Use this as the canonical path for `entrypoints.txt` and `headers.txt`, use `${LIBC_TARGET_OS}/{LIBC_TARGET_ARCHITECTURE}` as the default one if it's not set.
Maybe rename it to `LIBC_CONFIG_PATH`

https://github.com/llvm/llvm-project/pull/72318


More information about the libc-commits mailing list