HomePhabricator

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

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

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