mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 23:00:15 +00:00
[libcxx] [test] Don't pass INCLUDE to clang via -isystem
Passing the MSVC include dirs via -isystem makes them included before
clang's own include resource dir (<prefix>/lib/clang/<version>/include).
This causes includes of stddef.h to bypass clang's stddef.h which
defines max_align_t, which libc++ needs defined.
This was added in 4372f06d0f
when the
initial windows testing support was added, and has been brought along
since. It's unclear if this was needed back then - now it no longer is
needed at least, and since libc++ started depending on max_align_t, this
became an issue.
Differential Revision: https://reviews.llvm.org/D97167
This commit is contained in:
parent
075539ddf6
commit
90232b2ecd
@ -204,7 +204,7 @@ class Configuration(object):
|
||||
|
||||
assert self.cxx_is_clang_cl
|
||||
flags = []
|
||||
compile_flags = _prefixed_env_list('INCLUDE', '-isystem')
|
||||
compile_flags = []
|
||||
link_flags = _prefixed_env_list('LIB', '-L')
|
||||
for path in _split_env_var('LIB'):
|
||||
self.add_path(self.exec_env, path)
|
||||
|
Loading…
Reference in New Issue
Block a user