Skip to content

Commit a220f2e

Browse files
committed
utils: build the static Obversation module on Windows
Extend the experimental SDK with the Observation module as we work towards a complete SDK distribution.
1 parent 2e8f74f commit a220f2e

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
@@ -711,6 +711,7 @@ enum Project {
711711
ExperimentalOverlay
712712
ExperimentalStringProcessing
713713
ExperimentalSynchronization
714+
ExperimentalObservation
714715
ExperimentalDispatch
715716
StaticFoundation
716717
}
@@ -2426,6 +2427,25 @@ function Build-ExperimentalRuntime {
24262427
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
24272428
SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay";
24282429
}
2430+
2431+
Build-CMakeProject `
2432+
-Src $SourceCache\swift\Runtimes\Supplemental\Observation `
2433+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalObservation) `
2434+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2435+
-Platform $Platform `
2436+
-UseBuiltCompilers CXX,Swift `
2437+
-UseGNUDriver `
2438+
-Defines @{
2439+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2440+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2441+
CMAKE_CXX_FLAGS = @("-I$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\include");
2442+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2443+
CMAKE_Swift_COMPILER_WORKS = "YES";
2444+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2445+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2446+
2447+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
2448+
}
24292449
}
24302450
}
24312451

0 commit comments

Comments
 (0)