We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d2b75e commit 1502941Copy full SHA for 1502941
llvm/utils/gn/build/libs/zlib/BUILD.gn
@@ -2,9 +2,7 @@ import("//llvm/utils/gn/build/libs/zlib/enable.gni")
2
3
config("zlib_config") {
4
visibility = [ ":zlib" ]
5
- if (host_os == "win") {
6
- assert(!llvm_enable_zlib || zlib_path != "",
7
- "Please provide the path to zlib.")
+ if (host_os == "win" && zlib_path != "") {
8
include_dirs = [ zlib_path ]
9
libs = [ "$zlib_path/zlib.lib" ]
10
} else {
@@ -14,6 +12,8 @@ config("zlib_config") {
14
12
15
13
group("zlib") {
16
if (llvm_enable_zlib) {
+ assert(host_os != "win" || zlib_path != "",
+ "Please set zlib_path on Windows.")
17
public_configs = [ ":zlib_config" ]
18
}
19
0 commit comments