]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix compilation with upstream clang builtin headers.
authorbrooks <brooks@FreeBSD.org>
Mon, 6 Apr 2020 23:38:46 +0000 (23:38 +0000)
committerbrooks <brooks@FreeBSD.org>
Mon, 6 Apr 2020 23:38:46 +0000 (23:38 +0000)
commit86618fee02e7a8aae52ced371f450c8fe9a9feda
tree1dbcfb23427ded4022c141f77c3bd5ee08b35d8a
parentb7497ad148111125bbbf881a8ba63f0978bd56d3
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
Makefile.inc1
share/mk/bsd.compiler.mk
share/mk/bsd.sys.mk