File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
llvm/utils/gn/build/libs/zlib Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ import("//llvm/utils/gn/build/libs/zlib/enable.gni")
2
2
3
3
config (" zlib_config" ) {
4
4
visibility = [ " :zlib" ]
5
- libs = [ " z" ]
5
+ if (host_os == " win" ) {
6
+ assert (zlib_path != " " , " Please provide the path to zlib" )
7
+ include_dirs = [ zlib_path ]
8
+ libs = [ " $zlib_path /zlib.lib" ]
9
+ } else {
10
+ libs = [ " z" ]
11
+ }
6
12
}
7
13
8
14
group (" zlib" ) {
Original file line number Diff line number Diff line change
1
+ declare_args () {
2
+ if (host_os == " win" ) {
3
+ # On Windows, path to a directory containing zlib headers and zlib.lib.
4
+ zlib_path = " "
5
+ }
6
+ }
7
+
1
8
declare_args () {
2
9
# Whether to include code that links against zlib.
3
- llvm_enable_zlib = host_os != " win"
10
+ llvm_enable_zlib = host_os != " win" || zlib_path != " "
4
11
}
You can’t perform that action at this time.
0 commit comments