Skip to content

Commit

Permalink
[gn build] manually port 5e4409f
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Oct 6, 2020
1 parent 7060920 commit dfa70a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ write_cmake_config("config") {
"HAVE_SIGALTSTACK=",
"HAVE_STRERROR_R=",
"HAVE_SYSCONF=",
"HAVE_SYSEXITS_H=",
"HAVE_SYS_IOCTL_H=",
"HAVE_SYS_MMAN_H=",
"HAVE_SYS_PARAM_H=",
Expand Down Expand Up @@ -250,7 +249,6 @@ write_cmake_config("config") {
"HAVE_SIGALTSTACK=1",
"HAVE_STRERROR_R=1",
"HAVE_SYSCONF=1",
"HAVE_SYSEXITS_H=1",
"HAVE_SYS_IOCTL_H=1",
"HAVE_SYS_MMAN_H=1",
"HAVE_SYS_PARAM_H=1",
Expand Down Expand Up @@ -339,9 +337,15 @@ write_cmake_config("llvm-config") {
]

if (current_os == "win") {
values += [ "LLVM_ON_UNIX=" ]
values += [
"HAVE_SYSEXITS_H=",
"LLVM_ON_UNIX=",
]
} else {
values += [ "LLVM_ON_UNIX=1" ]
values += [
"HAVE_SYSEXITS_H=1",
"LLVM_ON_UNIX=1",
]
}

if (llvm_enable_threads) {
Expand Down

0 comments on commit dfa70a4

Please sign in to comment.