@@ -988,6 +988,7 @@ function Build-CMakeProject {
988
988
}
989
989
990
990
TryAdd- KeyValue $Defines CMAKE_BUILD_TYPE Release
991
+ TryAdd- KeyValue $Defines CMAKE_MT " mt"
991
992
992
993
$CFlags = @ ()
993
994
switch ($Platform ) {
@@ -1410,8 +1411,6 @@ function Build-BuildTools($Arch) {
1410
1411
- 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 `
1411
1412
- Defines @ {
1412
1413
CMAKE_CROSSCOMPILING = " NO" ;
1413
- CLANG_ENABLE_LIBXML2 = " NO" ;
1414
- LLDB_ENABLE_LIBXML2 = " NO" ;
1415
1414
LLDB_ENABLE_PYTHON = " NO" ;
1416
1415
LLDB_INCLUDE_TESTS = " NO" ;
1417
1416
LLDB_ENABLE_SWIFT_SUPPORT = " NO" ;
@@ -1510,9 +1509,7 @@ function Build-Compilers() {
1510
1509
- Defines ($TestingDefines + @ {
1511
1510
CLANG_TABLEGEN = (Join-Path - Path $BuildTools - ChildPath " clang-tblgen.exe" );
1512
1511
CLANG_TIDY_CONFUSABLE_CHARS_GEN = (Join-Path - Path $BuildTools - ChildPath " clang-tidy-confusable-chars-gen.exe" );
1513
- CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
1514
1512
CMAKE_Swift_FLAGS = $SwiftFlags ;
1515
- LibXml2_DIR = " $LibraryRoot \libxml2-2.11.5\usr\lib\Windows\$ ( $Arch.LLVMName ) \cmake\libxml2-2.11.5" ;
1516
1513
LLDB_PYTHON_EXE_RELATIVE_PATH = " python.exe" ;
1517
1514
LLDB_PYTHON_EXT_SUFFIX = " .pyd" ;
1518
1515
LLDB_PYTHON_RELATIVE_PATH = " lib/site-packages" ;
@@ -1940,9 +1937,14 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
1940
1937
- Defines (@ {
1941
1938
ENABLE_TESTING = " NO" ;
1942
1939
FOUNDATION_BUILD_TOOLS = if ($Platform -eq " Windows" ) { " YES" } else { " NO" };
1943
- CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
1944
1940
CURL_DIR = " $LibraryRoot \curl-8.9.1\usr\lib\$Platform \$ShortArch \cmake\CURL" ;
1945
- LibXml2_DIR = " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \cmake\libxml2-2.11.5" ;
1941
+ LIBXML2_LIBRARY = if ($Platform -eq " Windows" ) {
1942
+ " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \libxml2s.lib" ;
1943
+ } else {
1944
+ " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \libxml2.a" ;
1945
+ };
1946
+ LIBXML2_INCLUDE_DIR = " $LibraryRoot \libxml2-2.11.5\usr\include\libxml2" ;
1947
+ LIBXML2_DEFINITIONS = " -DLIBXML_STATIC" ;
1946
1948
ZLIB_LIBRARY = if ($Platform -eq " Windows" ) {
1947
1949
" $LibraryRoot \zlib-1.3.1\usr\lib\$Platform \$ShortArch \zlibstatic.lib"
1948
1950
} else {
@@ -2781,15 +2783,13 @@ if (-not $SkipBuild) {
2781
2783
Invoke-BuildStep Build-CMark $BuildArch
2782
2784
Invoke-BuildStep Build-BuildTools $BuildArch
2783
2785
if ($IsCrossCompiling ) {
2784
- Invoke-BuildStep Build-XML2 Windows $BuildArch
2785
2786
Invoke-BuildStep Build-Compilers - Build $BuildArch
2786
2787
}
2787
2788
if ($IncludeDS2 ) {
2788
2789
Invoke-BuildStep Build-RegsGen2 $BuildArch
2789
2790
}
2790
2791
2791
2792
Invoke-BuildStep Build-CMark $HostArch
2792
- Invoke-BuildStep Build-XML2 Windows $HostArch
2793
2793
Invoke-BuildStep Build-Compilers $HostArch
2794
2794
}
2795
2795
0 commit comments