-
Notifications
You must be signed in to change notification settings - Fork 13.6k
LLVM_RUNTIME_TARGETS option #137018
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
Comments
This is something I'd need to discuss with @petrhosek. Right now The normal |
There also really should be some documentation on this. I should spend some time detailing the LLVM runtime build. |
Requiring I also prefer In addition, the design you mentioned still doesn't allow specifying a compiler option only for a specific runtime on a specific target. All what I described above are user facing option choices not actual CMake handling of their consumption. |
Yeah, it's definitely a little annoying to type out, but this is why we suggest people use CMake cache files if they want a 'default' experience.
There's
I think the biggest issue is the weirdness between |
LLVM_
prefix makes it sounds like global in the whole LLVM build.Searching the code base
https://github.com/search?q=repo%3Allvm%2Fllvm-project%20LLVM_RUNTIME_TARGETS&type=code
indicates that is an option per runtime.
If I'm building 3 runtime
-DLLVM_ENABLE_RUNTIMES="a;b;c"
however, if
a
only supportsarch1
andarch2
,b
only supportarch3
,c
supportsarch1
andarc3
,I'm not sure how I should use
LLVM_RUNTIME_TARGETS
optionand what happens if I put
-DLLVM_RUNTIME_TARGETS="arch1;arch2;arch3"
#136729 mentioned additional variables to control the resolution
I found it cumbersome.
Instead, I'd like to see
In short, I prefer the runtime name as the primary key rather than its supported targets in the user facing CMake options.
The text was updated successfully, but these errors were encountered: