This is an archive of the discontinued LLVM Phabricator instance.

[gn build] make 'clang' target depend on libcxx/include on mac
ClosedPublic

Authored by thakis on Feb 7 2020, 11:48 AM.

Details

Summary

On macOS, libc++ headers are distributed with the compiler, not
the sysroot. Without this, compiling a file that includes something
like <string> won't compile with gn-built clang without manual tweaks.

I used to do the manual tweaks, but now that other people are starting
to use this on mac, let's make it Just Work.

(This is marginally nicer than the cmake build now in that you can
just build 'clang' and it'll do the right thing.)

Diff Detail

Event Timeline

thakis created this revision.Feb 7 2020, 11:48 AM
Herald added a project: Restricted Project. · View Herald Transcript
hans accepted this revision.Feb 10 2020, 4:38 AM
This revision is now accepted and ready to land.Feb 10 2020, 4:38 AM
This revision was automatically updated to reflect the committed changes.