From dfa70a483aad438cad826c414a5d710bab6ecf49 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 6 Oct 2020 18:43:12 -0400 Subject: [PATCH] [gn build] manually port 5e4409f308177 --- llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn index acbd66a..1ef33cd 100644 --- a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn @@ -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=", @@ -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", @@ -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) { -- 2.7.4