This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][CMake] Set project for the custom libc++
ClosedPublic

Authored by phosek on Feb 18 2019, 10:48 PM.

Details

Summary

This is another follow up to r354212 which is broken on Darwin when
cross-compiling runtimes to Linux when it ignores the -fuse-ld=lld
linker flag and attempts to use the host linker when performing the
compiler identification. Upon investigation, I noticed that setting
the project with appropriate list of languages makes the error go
away and it shouldn't hurt either.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Feb 18 2019, 10:48 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added subscribers: llvm-commits, Restricted Project, jdoerfert and 3 others. · View Herald Transcript
Hahnfeld accepted this revision.Feb 19 2019, 12:04 AM

LG if that fixes the problem. For the record llvm/runtimes/ does the same.

I wonder if we should still set LIBCXXABI_STANDALONE_BUILD and LIBCXX_STANDALONE_BUILD. I added them because that defines PACKAGE_VERSION, but maybe we should pass that variable through?

This revision is now accepted and ready to land.Feb 19 2019, 12:04 AM
This revision was automatically updated to reflect the committed changes.