Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions utils/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ enum Project {
ClangRuntime
SwiftInspect
ExperimentalRuntime
ExperimentalOverlay
ExperimentalStringProcessing
ExperimentalSynchronization
StaticFoundation
}

Expand Down Expand Up @@ -2276,9 +2279,61 @@ function Build-ExperimentalRuntime {
CMAKE_Swift_COMPILER_WORKS = "YES";
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();

# NOTE(compnerd) we can get away with this currently because we only
# use the C portion of the dispatch build, which is always built
# dynamically.
dispatch_DIR = (Get-ProjectCMakeModules $Platform Dispatch);
SwiftCore_ENABLE_CONCURRENCY = "YES";
}

Build-CMakeProject `
-Src $SourceCache\swift\Runtimes\Overlay `
-Bin (Get-ProjectBinaryCache $Platform ExperimentalOverlay) `
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
-Platform $Platform `
-UseBuiltCompilers C,CXX,Swift `
-UseGNUDriver `
-Defines @{
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
CMAKE_Swift_COMPILER_WORKS = "YES";
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
}

Build-CMakeProject `
-Src $SourceCache\swift\Runtimes\Supplemental\StringProcessing `
-Bin (Get-ProjectBinaryCache $Platform ExperimentalStringProcessing) `
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
-Platform $Platform `
-UseBuiltCompilers C,Swift `
-UseGNUDriver `
-Defines @{
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
CMAKE_Swift_COMPILER_WORKS = "YES";
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
}

Build-CMakeProject `
-Src $SourceCache\swift\Runtimes\Supplemental\Synchronization `
-Bin (Get-ProjectBinaryCache $Platform ExperimentalSynchronization) `
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
-Platform $Platform `
-UseBuiltCompilers C,Swift `
-UseGNUDriver `
-Defines @{
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
CMAKE_Swift_COMPILER_WORKS = "YES";
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
}
}
}

Expand Down