This seems to be working fine in my testing so this error check shouldn't be needed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm suspicious that this would work as intended. What builtin libraries get built if your triple is Darwin?
Comment Actions
So... Looking at the CMake in compiler-rt, COMPILER_RT_DEFAULT_TARGET_ONLY is only interpreted in a NOT APPLE block, so this would really not behave the way you intend. I think it is better to not support this on Darwin for the time being and provide a hard error rather than behaving incorrectly.
I suspect if you passed in multiple Darwin triples in LLVM_BUILTIN_TARGETS you'd get multiple copies of all the Darwin builtin libraries being built.
Comment Actions
Would it be OK to avoid throwing error in case the $target is default (even on Darwin)? That's all I need at the moment.