Skip to content

Commit 1502941

Browse files
committed
[gn build] Try harder to unbreak Windows build after f8e833a.
1 parent 6d2b75e commit 1502941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/utils/gn/build/libs/zlib/BUILD.gn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import("//llvm/utils/gn/build/libs/zlib/enable.gni")
22

33
config("zlib_config") {
44
visibility = [ ":zlib" ]
5-
if (host_os == "win") {
6-
assert(!llvm_enable_zlib || zlib_path != "",
7-
"Please provide the path to zlib.")
5+
if (host_os == "win" && zlib_path != "") {
86
include_dirs = [ zlib_path ]
97
libs = [ "$zlib_path/zlib.lib" ]
108
} else {
@@ -14,6 +12,8 @@ config("zlib_config") {
1412

1513
group("zlib") {
1614
if (llvm_enable_zlib) {
15+
assert(host_os != "win" || zlib_path != "",
16+
"Please set zlib_path on Windows.")
1717
public_configs = [ ":zlib_config" ]
1818
}
1919
}

0 commit comments

Comments
 (0)