Skip to content

Commit dfa70a4

Browse files
committed
[gn build] manually port 5e4409f
1 parent 7060920 commit dfa70a4

File tree

1 file changed

+8
-4
lines changed
  • llvm/utils/gn/secondary/llvm/include/llvm/Config

1 file changed

+8
-4
lines changed

llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ write_cmake_config("config") {
213213
"HAVE_SIGALTSTACK=",
214214
"HAVE_STRERROR_R=",
215215
"HAVE_SYSCONF=",
216-
"HAVE_SYSEXITS_H=",
217216
"HAVE_SYS_IOCTL_H=",
218217
"HAVE_SYS_MMAN_H=",
219218
"HAVE_SYS_PARAM_H=",
@@ -250,7 +249,6 @@ write_cmake_config("config") {
250249
"HAVE_SIGALTSTACK=1",
251250
"HAVE_STRERROR_R=1",
252251
"HAVE_SYSCONF=1",
253-
"HAVE_SYSEXITS_H=1",
254252
"HAVE_SYS_IOCTL_H=1",
255253
"HAVE_SYS_MMAN_H=1",
256254
"HAVE_SYS_PARAM_H=1",
@@ -339,9 +337,15 @@ write_cmake_config("llvm-config") {
339337
]
340338

341339
if (current_os == "win") {
342-
values += [ "LLVM_ON_UNIX=" ]
340+
values += [
341+
"HAVE_SYSEXITS_H=",
342+
"LLVM_ON_UNIX=",
343+
]
343344
} else {
344-
values += [ "LLVM_ON_UNIX=1" ]
345+
values += [
346+
"HAVE_SYSEXITS_H=1",
347+
"LLVM_ON_UNIX=1",
348+
]
345349
}
346350

347351
if (llvm_enable_threads) {

0 commit comments

Comments
 (0)