Improve superenv mixing newer LLVM headers with Apple libc++
To avoid missing symbols when mixing newer LLVM headers with older Apple libc++, inject a __config_site that sets vendor availability annotations to match system library.
This commit is contained in:
parent
6c44d1a8f1
commit
4077e8e38d
@ -0,0 +1,7 @@
|
|||||||
|
#ifndef _HOMEBREW_LIBCPP___CONFIG_SITE
|
||||||
|
#define _HOMEBREW_LIBCPP___CONFIG_SITE
|
||||||
|
|
||||||
|
#include_next <__config_site>
|
||||||
|
#define _LIBCPP_HAS_VENDOR_AVAILABILITY_ANNOTATIONS 1
|
||||||
|
|
||||||
|
#endif // _HOMEBREW_LIBCPP___CONFIG_SITE
|
@ -324,6 +324,9 @@ class Cmd
|
|||||||
args << "-std=c++11" if cxx11?
|
args << "-std=c++11" if cxx11?
|
||||||
args << "-stdlib=libc++" if libcxx?
|
args << "-stdlib=libc++" if libcxx?
|
||||||
args << "-stdlib=libstdc++" if libstdcxx?
|
args << "-stdlib=libstdc++" if libstdcxx?
|
||||||
|
if ENV["HOMEBREW_CC"] == "llvm_clang" && mac?
|
||||||
|
args << "-I#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/shims/mac/super/include/llvm"
|
||||||
|
end
|
||||||
args
|
args
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user