Skip to content

Commit b3b9924

Browse files
authored
Merge pull request #81732 from compnerd/expansion
utils: extend the experimental runtime build
2 parents 6adc187 + 7b17c47 commit b3b9924

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

utils/build.ps1

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,9 @@ enum Project {
663663
ClangRuntime
664664
SwiftInspect
665665
ExperimentalRuntime
666+
ExperimentalOverlay
667+
ExperimentalStringProcessing
668+
ExperimentalSynchronization
666669
StaticFoundation
667670
}
668671

@@ -2309,9 +2312,61 @@ function Build-ExperimentalRuntime {
23092312
CMAKE_Swift_COMPILER_WORKS = "YES";
23102313
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23112314
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2315+
2316+
# NOTE(compnerd) we can get away with this currently because we only
2317+
# use the C portion of the dispatch build, which is always built
2318+
# dynamically.
23122319
dispatch_DIR = (Get-ProjectCMakeModules $Platform Dispatch);
23132320
SwiftCore_ENABLE_CONCURRENCY = "YES";
23142321
}
2322+
2323+
Build-CMakeProject `
2324+
-Src $SourceCache\swift\Runtimes\Overlay `
2325+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalOverlay) `
2326+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2327+
-Platform $Platform `
2328+
-UseBuiltCompilers C,CXX,Swift `
2329+
-UseGNUDriver `
2330+
-Defines @{
2331+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2332+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2333+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2334+
CMAKE_Swift_COMPILER_WORKS = "YES";
2335+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2336+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2337+
}
2338+
2339+
Build-CMakeProject `
2340+
-Src $SourceCache\swift\Runtimes\Supplemental\StringProcessing `
2341+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalStringProcessing) `
2342+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2343+
-Platform $Platform `
2344+
-UseBuiltCompilers C,Swift `
2345+
-UseGNUDriver `
2346+
-Defines @{
2347+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2348+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2349+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2350+
CMAKE_Swift_COMPILER_WORKS = "YES";
2351+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2352+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2353+
}
2354+
2355+
Build-CMakeProject `
2356+
-Src $SourceCache\swift\Runtimes\Supplemental\Synchronization `
2357+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalSynchronization) `
2358+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2359+
-Platform $Platform `
2360+
-UseBuiltCompilers C,Swift `
2361+
-UseGNUDriver `
2362+
-Defines @{
2363+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2364+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2365+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2366+
CMAKE_Swift_COMPILER_WORKS = "YES";
2367+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2368+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2369+
}
23152370
}
23162371
}
23172372

0 commit comments

Comments
 (0)