Skip to content

Commit 8803d83

Browse files
authored
Merge pull request swiftlang#83278 from compnerd/differentiation
utils: build Differentiation in the experimental SDK
2 parents ca4b0a1 + 684d75b commit 8803d83

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

utils/build.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ enum Project {
714714
ExperimentalDistributed
715715
ExperimentalObservation
716716
ExperimentalDispatch
717+
ExperimentalDifferentiation
717718
StaticFoundation
718719
}
719720

@@ -2594,6 +2595,25 @@ function Build-ExperimentalRuntime {
25942595
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
25952596
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
25962597

2598+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
2599+
SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay";
2600+
}
2601+
2602+
Build-CMakeProject `
2603+
-Src $SourceCache\swift\Runtimes\Supplemental\Differentiation `
2604+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalDifferentiation) `
2605+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2606+
-Platform $Platform `
2607+
-UseBuiltCompilers C,CXX,Swift `
2608+
-UseGNUDriver `
2609+
-Defines @{
2610+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2611+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2612+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2613+
CMAKE_Swift_COMPILER_WORKS = "YES";
2614+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2615+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2616+
25972617
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
25982618
SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay";
25992619
}

0 commit comments

Comments
 (0)