HomePhabricator

[driver][Darwin] Add an -ibuiltininc flag that lets Darwin driver include Clang…
3328095992b8Unpublished

Authored by arphaman on Jan 27 2020, 1:01 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[driver][Darwin] Add an -ibuiltininc flag that lets Darwin driver include Clang builtin headers even with -nostdinc

Some projects use -nostdinc, but need to access some intrinsics files when building specific files.
The new -ibuiltininc flag lets them use this flag when compiling these files to ensure they can
find Clang's builtin headers.

The use of -nobuiltininc after the -ibuiltininc flag does not add the builtin header
search path to the list of header search paths.

Differential Revision: https://reviews.llvm.org/D73500

(cherry picked from commit f96f64d0f2793fe720bf847cac4a45d74a81c0ef)