This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Enable buildings builtins for Darwin as part of runtimes
ClosedPublic

Authored by phosek on Jul 12 2017, 10:21 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jul 12 2017, 10:21 PM
beanz edited edge metadata.Jul 18 2017, 1:31 PM

I'm suspicious that this would work as intended. What builtin libraries get built if your triple is Darwin?

beanz added a comment.Jul 18 2017, 1:35 PM

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.

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.

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.

This revision was automatically updated to reflect the committed changes.