[libc-commits] [libc] [llvm] [libc] Support multilib with runtimes build (PR #115357)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Tue Nov 12 15:14:09 PST 2024
================
@@ -248,10 +248,17 @@ foreach(config_path IN LISTS LIBC_CONFIG_JSON_FILE_LIST)
load_libc_config(${config_path}/config.json ${cmd_line_conf})
endforeach()
+if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
+ set(LIBC_TARGET_SUBDIR ${LLVM_DEFAULT_TARGET_TRIPLE})
+ if(LIBC_LIBDIR_SUBDIR)
+ string(APPEND LIBC_TARGET_SUBDIR /${LIBC_LIBDIR_SUBDIR})
----------------
petrhosek wrote:
This is set by the bootstrapping build here:
https://github.com/llvm/llvm-project/blob/7b5e285d16090c2ddf4ee539c410d24bde52cbea/llvm/runtimes/CMakeLists.txt#L636
The name comes from `LLVM_RUNTIME_MULTILIBS`.
https://github.com/llvm/llvm-project/pull/115357
More information about the libc-commits
mailing list