@@ -959,7 +959,6 @@ function Build-CMakeProject {
959
959
}
960
960
961
961
TryAdd- KeyValue $Defines CMAKE_BUILD_TYPE Release
962
- TryAdd- KeyValue $Defines CMAKE_MT " mt"
963
962
964
963
$CFlags = @ ()
965
964
switch ($Platform ) {
@@ -1382,6 +1381,8 @@ function Build-BuildTools($Arch) {
1382
1381
- BuildTargets llvm- tblgen, clang- tblgen, clang- pseudo- gen, clang- tidy- confusable- chars- gen, lldb- tblgen, llvm- config, swift- def- to- strings- converter, swift- serialize- diagnostics, swift- compatibility- symbols `
1383
1382
- Defines @ {
1384
1383
CMAKE_CROSSCOMPILING = " NO" ;
1384
+ CLANG_ENABLE_LIBXML2 = " NO" ;
1385
+ LLDB_ENABLE_LIBXML2 = " NO" ;
1385
1386
LLDB_ENABLE_PYTHON = " NO" ;
1386
1387
LLDB_INCLUDE_TESTS = " NO" ;
1387
1388
LLDB_ENABLE_SWIFT_SUPPORT = " NO" ;
@@ -1477,7 +1478,9 @@ function Build-Compilers() {
1477
1478
- Defines ($TestingDefines + @ {
1478
1479
CLANG_TABLEGEN = (Join-Path - Path $BuildTools - ChildPath " clang-tblgen.exe" );
1479
1480
CLANG_TIDY_CONFUSABLE_CHARS_GEN = (Join-Path - Path $BuildTools - ChildPath " clang-tidy-confusable-chars-gen.exe" );
1481
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
1480
1482
CMAKE_Swift_FLAGS = $SwiftFlags ;
1483
+ LibXml2_DIR = " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \cmake\libxml2-2.11.5" ;
1481
1484
LLDB_PYTHON_EXE_RELATIVE_PATH = " python.exe" ;
1482
1485
LLDB_PYTHON_EXT_SUFFIX = " .pyd" ;
1483
1486
LLDB_PYTHON_RELATIVE_PATH = " lib/site-packages" ;
@@ -1900,14 +1903,9 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
1900
1903
- Defines (@ {
1901
1904
ENABLE_TESTING = " NO" ;
1902
1905
FOUNDATION_BUILD_TOOLS = if ($Platform -eq " Windows" ) { " YES" } else { " NO" };
1906
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
1903
1907
CURL_DIR = " $LibraryRoot \curl-8.9.1\usr\lib\$Platform \$ShortArch \cmake\CURL" ;
1904
- LIBXML2_LIBRARY = if ($Platform -eq " Windows" ) {
1905
- " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \libxml2s.lib" ;
1906
- } else {
1907
- " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \libxml2.a" ;
1908
- };
1909
- LIBXML2_INCLUDE_DIR = " $LibraryRoot \libxml2-2.11.5\usr\include\libxml2" ;
1910
- LIBXML2_DEFINITIONS = " -DLIBXML_STATIC" ;
1908
+ LibXml2_DIR = " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \cmake\libxml2-2.11.5" ;
1911
1909
ZLIB_LIBRARY = if ($Platform -eq " Windows" ) {
1912
1910
" $LibraryRoot \zlib-1.3.1\usr\lib\$Platform \$ShortArch \zlibstatic.lib"
1913
1911
} else {
@@ -2748,13 +2746,15 @@ if (-not $SkipBuild) {
2748
2746
Invoke-BuildStep Build-CMark $BuildArch
2749
2747
Invoke-BuildStep Build-BuildTools $BuildArch
2750
2748
if ($IsCrossCompiling ) {
2749
+ Invoke-BuildStep Build-XML2 Windows $BuildArch
2751
2750
Invoke-BuildStep Build-Compilers - Build $BuildArch
2752
2751
}
2753
2752
if ($IncludeDS2 ) {
2754
2753
Invoke-BuildStep Build-RegsGen2 $BuildArch
2755
2754
}
2756
2755
2757
2756
Invoke-BuildStep Build-CMark $HostArch
2757
+ Invoke-BuildStep Build-XML2 Windows $HostArch
2758
2758
Invoke-BuildStep Build-Compilers $HostArch
2759
2759
}
2760
2760
0 commit comments