-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc] Support multilib with runtimes build #115357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -635,6 +635,7 @@ if(build_runtimes) | |||
CMAKE_ARGS -DLLVM_DEFAULT_TARGET_TRIPLE=${name} | ||||
-DLLVM_RUNTIMES_PREFIX=${name}/ | ||||
-DLLVM_RUNTIMES_LIBDIR_SUBDIR=${multilib} | ||||
${extra_cmake_args} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this related or is it debug code that snuck in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed to passthrough the hdrgen CMake variables and matches the non-multilib case: llvm-project/llvm/runtimes/CMakeLists.txt Line 627 in 7b5e285
|
||||
BASE_NAME ${name} | ||||
EXTRA_ARGS TARGET_TRIPLE ${name}) | ||||
endforeach() | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So things will be installed in
lib/x86_64-unknown-linux-gnu/<feature>
for example? How does the compiler know where to find it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set by the bootstrapping build here:
llvm-project/llvm/runtimes/CMakeLists.txt
Line 636 in 7b5e285
The name comes from
LLVM_RUNTIME_MULTILIBS
.