This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Search for libc++ headers in ResourceDir
AbandonedPublic

Authored by Hahnfeld on Feb 21 2017, 10:16 AM.

Details

Summary

Remove duplicate test from linux-ld.c that belongs to
(and is already done in) linux-header-search.cpp.

Diff Detail

Event Timeline

Hahnfeld created this revision.Feb 21 2017, 10:16 AM

libc++ headers should not be installed in the resource dir.

libc++ headers should not be installed in the resource dir.

They are currently not by default. But with D30015 for runtime libraries, this may become a place for headers packaged with the compiler.

Hahnfeld updated this revision to Diff 90296.Mar 2 2017, 1:03 AM
Hahnfeld edited the summary of this revision. (Show Details)

Adapt and add tests.

libc++ headers should not be installed in the resource dir.

They are currently not by default. But with D30015 for runtime libraries, this may become a place for headers packaged with the compiler.

Note that I didn't say "are not", but rather "should not".

The only things that should live in the resource dir are things that are tied to the specific version of the compiler, i.e. sanitizer runtimes, builtins, and the few compiler-provided headers. Everything else should live in sysroots/SDKs, and the resource dir is not where those should live.

EricWF edited edge metadata.Mar 2 2017, 11:14 AM

libc++ headers should not be installed in the resource dir.

They are currently not by default. But with D30015 for runtime libraries, this may become a place for headers packaged with the compiler.

Note that I didn't say "are not", but rather "should not".

The only things that should live in the resource dir are things that are tied to the specific version of the compiler, i.e. sanitizer runtimes, builtins, and the few compiler-provided headers. Everything else should live in sysroots/SDKs, and the resource dir is not where those should live.

+1. I don't think this is an appropriate place for the headers to live.

Hahnfeld abandoned this revision.Mar 2 2017, 11:21 PM

http://lists.llvm.org/pipermail/cfe-dev/2017-January/052512.html suggested to install runtime libraries (like libomp, but I think libc++ in certain cases may fall under the same category) to ResourceDir and I wanted the headers to be co-located. However, I can live with installing them to normal include