Skip to content

Commit e610a0e

Browse files
committed
[gn] port eb0e4b1
1 parent d1cad22 commit e610a0e

File tree

1 file changed

+11
-2
lines changed
  • llvm/utils/gn/secondary/compiler-rt/test

1 file changed

+11
-2
lines changed

llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,17 @@ write_cmake_config("lit_common_configured") {
111111
}
112112

113113
if (llvm_enable_zlib) {
114-
values += [ "ZLIB_FOUND_PYBOOL=1" ]
114+
# FIXME: Include dir and library are wrong on Windows; look at zlib_path.
115+
values += [
116+
"ZLIB_FOUND_PYBOOL=1",
117+
"ZLIB_INCLUDE_DIR=-I=",
118+
"ZLIB_LIBRARY=-lz",
119+
]
115120
} else {
116-
values += [ "ZLIB_FOUND_PYBOOL=0" ]
121+
values += [
122+
"ZLIB_FOUND_PYBOOL=0",
123+
"ZLIB_INCLUDE_DIR=",
124+
"ZLIB_LIBRARY=",
125+
]
117126
}
118127
}

0 commit comments

Comments
 (0)