Bug 1963424 - Statically link libxml2 to clang on Linux too. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D247549
This commit is contained in:
committed by
mh@glandium.org
parent
a0d57be908
commit
6f0f9df521
@@ -288,6 +288,13 @@ def build_one_stage(
|
||||
# checks.
|
||||
cmake_args += ["-DCAN_TARGET_i386=1"]
|
||||
cmake_args += ["-DLLVM_ENABLE_TERMINFO=OFF"]
|
||||
libxml2 = os.path.join(os.environ.get("MOZ_FETCHES_DIR", ""), "libxml2")
|
||||
if os.path.exists(libxml2):
|
||||
cmake_args += [
|
||||
"-DLIBXML2_DEFINITIONS=-DLIBXML_STATIC",
|
||||
f"-DLIBXML2_INCLUDE_DIR={libxml2}/include/libxml2",
|
||||
f"-DLIBXML2_LIBRARIES={libxml2}/lib/libxml2.a",
|
||||
]
|
||||
if is_windows(target):
|
||||
cmake_args.insert(-1, "-DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON")
|
||||
cmake_args.insert(-1, "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded")
|
||||
|
||||
Reference in New Issue
Block a user