Skip to content

Commit 8196398

Browse files
committed
Upstream trivial diffs
withSerializationContext needs to be exposed to tests, and BuildService.run needs to build and do so without warnings regardless of whether USE_STATIC_PLUGIN_INITIALIZATION is set. EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES's DefaultValue was duplicated in an incorrect merge conflict resolution. STRING_CATALOG_GENERATE_SYMBOLS was missing from the CoreBuildSystem xcspec.
1 parent b9a8b86 commit 8196398

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Sources/SWBBuildService/BuildServiceEntryPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extension BuildService {
9595
///
9696
/// Called directly from the exported C entry point `swiftbuildServiceEntryPoint` for in-process connections, or from `BuildService.main()` (after some basic file descriptor setup) for out-of-process connections.
9797
fileprivate static func run(inputFD: FileDescriptor, outputFD: FileDescriptor, connectionMode: ServiceHostConnectionMode, pluginsDirectory: URL?, arguments: [String], pluginLoadingFinished: () throws -> Void) async throws {
98-
let pluginManager = await { @PluginExtensionSystemActor in
98+
let pluginManager = try await { @PluginExtensionSystemActor () async throws in
9999
// Create the plugin manager and load plugins.
100100
let pluginManager = PluginManager(skipLoadingPluginIdentifiers: [])
101101

Sources/SWBCore/Specs/CoreBuildSystem.xcspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,6 @@ When `GENERATE_INFOPLIST_FILE` is enabled, sets the value of the [CFBundleIdenti
11951195
Type = StringList;
11961196
Category = "Search Paths";
11971197
DefaultValue = "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj";
1198-
DefaultValue = "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj";
11991198
},
12001199
{
12011200
Name = "VERSIONING_SYSTEM";
@@ -3652,6 +3651,13 @@ When this setting is enabled:
36523651
Category = "Localization";
36533652
Description = "When enabled, string tables generated in a localization export will prefer the String Catalog format.";
36543653
},
3654+
{ Name = STRING_CATALOG_GENERATE_SYMBOLS;
3655+
Type = Boolean;
3656+
DefaultValue = NO;
3657+
DisplayName = "Generate String Catalog Symbols";
3658+
Category = "Localization";
3659+
Description = "When enabled, symbols will be generated for manually-managed strings in String Catalogs.";
3660+
},
36553661

36563662
// rdar://108915072 (Move Siri Category and relevant configs out of CoreBuildSystem)
36573663
// Siri Settings

Sources/SWBTaskExecution/BuildDescription.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ package final class TaskActionRegistry: Sendable {
13981398
implementations = try TaskActionExtensionPoint.taskActionImplementations(pluginManager: pluginManager)
13991399
}
14001400

1401-
func withSerializationContext<T>(_ block: () throws -> T) rethrows -> T {
1401+
@_spi(Testing) public func withSerializationContext<T>(_ block: () throws -> T) rethrows -> T {
14021402
try TaskAction.$taskActionImplementations.withValue(implementations) {
14031403
try block()
14041404
}

0 commit comments

Comments
 (0)