Skip to content

Commit 14acccc

Browse files
committed
utils: build Differentiation in the experimental SDK
Add the differentiation module to the experimental SDK on Windows.
1 parent 933b351 commit 14acccc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

utils/build.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ enum Project {
713713
ExperimentalSynchronization
714714
ExperimentalDistributed
715715
ExperimentalObservation
716+
ExperimentalDifferentiation
716717
ExperimentalDispatch
717718
StaticFoundation
718719
}
@@ -2594,6 +2595,24 @@ 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+
}
2600+
2601+
Build-CMakeProject `
2602+
-Src $SourceCache\swift\Runtimes\Supplemental\Differentiation `
2603+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalDifferentiation) `
2604+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2605+
-Platform $Platform `
2606+
-UseBuiltCompilers CXX,Swift `
2607+
-UseGNUDriver `
2608+
-Defines @{
2609+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2610+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2611+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2612+
CMAKE_Swift_COMPILER_WORKS = "YES";
2613+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2614+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2615+
25972616
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
25982617
}
25992618
}

0 commit comments

Comments
 (0)