This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Fix building builtins on Linux and Darwin.
ClosedPublic

Authored by beanz on Aug 31 2015, 1:06 PM.

Details

Summary

I broke building the builtins with r245967. This fixes them on Linux and builds them properly for Darwin.

The old code could not be made to work on Darwin as a result of the refactoring of add_compiler_rt_runtime, so I had to rework the way they are built for Darwin. This solution is not ideal and will be fixed in subsequent commits. I just want to get this in so everything is working again.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 33617.Aug 31 2015, 1:06 PM
beanz retitled this revision from to [CMake] Fix building builtins on Linux and Darwin..
beanz updated this object.
beanz added reviewers: samsonov, chh, compnerd, bogner.
beanz added a subscriber: llvm-commits.
beanz updated this revision to Diff 33620.Aug 31 2015, 1:15 PM

Fixing the path for the lipo'd output library.

samsonov added inline comments.Aug 31 2015, 2:00 PM
cmake/config-ix.cmake
261 ↗(On Diff #33620)

You also need i686 here (it's currently listed in lib/builtins/CMakeLists.txt).

419 ↗(On Diff #33620)

Please fix the variable name to BUILTIN_SUPPORTED_ARCH

lib/builtins/CMakeLists.txt
335 ↗(On Diff #33620)

You probably can also list(APPEND) here. Also, please keep the line length smaller.

340 ↗(On Diff #33620)

Line length.

beanz updated this revision to Diff 33630.Aug 31 2015, 2:20 PM

Updates based on feedback from samsonov.

samsonov accepted this revision.Aug 31 2015, 2:24 PM
samsonov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 31 2015, 2:24 PM
This revision was automatically updated to reflect the committed changes.