1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[gn build] try to fix clang build after 37c030f81a9fdd

37c030f81a9fdd made it so that depending on //libcxx/include
automatically added the copied header dir to the include search path.
For some reason, clang can't build against the copied libcxx headers
(it complains about ldiv_t not being a type). I don't have a mac
to debug right now, but for the clang target this change was
unintentional anyways -- only depend on the copies target, instead
of on the target that also adjusts the include path.
This commit is contained in:
Nico Weber 2020-10-21 14:11:16 -04:00
parent eaf36d0bb9
commit dbdd52cab6
2 changed files with 2 additions and 3 deletions

View File

@ -86,7 +86,7 @@ executable("clang") {
# clang. This is different from the CMake build, which requires devs to
# explicitly build the "libcxx" target (which also needlessly compiles the
# libcxx sources) to get a working compiler.
deps += [ "//libcxx/include" ]
deps += [ "//libcxx/include:copy_headers" ]
}
sources = [
"cc1_main.cpp",

View File

@ -217,7 +217,7 @@ if (current_toolchain == default_toolchain) {
"wchar.h",
"wctype.h",
]
deps = []
deps = [ ":write_config_site" ]
if (target_os != "mac" && target_os != "win") {
# libcxx/cmake/Modules/HandleLibCXXABI.cmake sets
# LIBCXX_CXX_ABI_HEADER_TARGET if the libcxx abi library either of
@ -264,7 +264,6 @@ config("include_config") {
group("include") {
deps = [
":copy_headers($default_toolchain)",
":write_config_site($default_toolchain)",
]
public_configs = [ ":include_config" ]
}