When using the default target, there's no other way to pass these
into the builtins and runtimes subbuilds.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Actually, could you give an example of the type of variables you want to pass in? I thought the CMAKE_OSX_* options were mostly for setting OS and architecture, which the Darwin compiler-rt build does itself anyway.
Yes, the concrete example we ran into recently is CMAKE_OSX_DEPLOYMENT_TARGET which is set here https://github.com/llvm/llvm-project/blob/58ec17cb4ea4f3b76f0c948cf4c894ea7ea43552/clang/cmake/caches/Fuchsia-stage2.cmake#L49. In the future I'd also like to take advantage of CMAKE_OSX_ARCHITECTURES to build libc++ as a universal library.
I'm not particular happy with this approach since the runtimes build might accidentally pick up a flag you didn't intend to, which is the motivation for D117263.
Ah, right, I forgot that runtimes other than compiler-rt don't do any of its special OS/architecture handling. This makes sense then.