diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2020-04-06 23:38:46 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2020-04-06 23:38:46 +0000 |
commit | f382bac49b1378da3c2dd66bf721beaa16b5d471 (patch) | |
tree | 1dbcfb23427ded4022c141f77c3bd5ee08b35d8a /Makefile.inc1 | |
parent | a86ddfe8c760be83b1322fe8ba3a3568421adb1f (diff) | |
download | src-test2-f382bac49b1378da3c2dd66bf721beaa16b5d471.tar.gz src-test2-f382bac49b1378da3c2dd66bf721beaa16b5d471.zip |
Fix compilation with upstream clang builtin headers.
By using -nobuiltininc and adding the clang builtin headers resource dir
to the end of the compiler header search path, we can still find headers
such as immintrin.h but find the FreeBSD version of stddef.h/stdarg.h/..
first.
This is a workaround until we are able to settle on and complete a plan
to harmonize guard macros with LLVM. We've mostly worked out this on
FreeBSD systems by removing select headers from the installed set of
devel/llvm*, but that isn't a good solution for cross build.
Submitted by: arichardson
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17002
Notes
Notes:
svn path=/head/; revision=359681
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index e58c21e65ff7..926b4e5fd635 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -337,6 +337,7 @@ _TOOLCHAIN_METADATA_VARS= COMPILER_VERSION \ COMPILER_TYPE \ COMPILER_FEATURES \ COMPILER_FREEBSD_VERSION \ + COMPILER_RESOURCE_DIR \ LINKER_VERSION \ LINKER_FEATURES \ LINKER_TYPE \ |