Files
clang-p2996/llvm/utils/gn/build/libs/zlib/enable.gni
Sébastien Marchand f8e833a501 [gn build] Add a flag zlib_path to provide the path to zlib on Windows.
Also, automatically set llvm_enable_zlib to true when zlib_path is set.

Differential Revision: https://reviews.llvm.org/D80042
2020-05-19 16:00:54 -04:00

12 lines
274 B
Plaintext

declare_args() {
if (host_os == "win") {
# On Windows, path to a directory containing zlib headers and zlib.lib.
zlib_path = ""
}
}
declare_args() {
# Whether to include code that links against zlib.
llvm_enable_zlib = host_os != "win" || zlib_path != ""
}