@@ -85,6 +85,26 @@ let swiftSettings = swiftSettingsAvailability + swiftSettingsCI + [
8585 . define( " SYSTEM_PACKAGE " ) ,
8686 . define( " ENABLE_MOCKING " , . when( configuration: . debug) ) ,
8787 . enableExperimentalFeature( " Lifetimes " ) ,
88+ // --- SE-0529 FilePath port ---
89+ // Settings folded in for the base (Sources/System/FilePath) and the compat
90+ // layer (Sources/System/SystemFilePath), mirroring the prep repo's separate
91+ // FilePath + SystemFilePath targets now that they share one module.
92+ //
93+ // Defines the `SwiftStdlib 9999` availability token every base decl carries.
94+ . enableExperimentalFeature(
95+ " AvailabilityMacro=SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, visionOS 9999 " ) ,
96+ // Selects the base's real per-platform resolve() syscall branch and its own
97+ // _internalInvariant, instead of the stdlib SwiftShims stub branch.
98+ . define( " FILEPATH_PACKAGE " ) ,
99+ // swift-system historically ships a non-failable FilePath(_: String); the
100+ // base's is failable and the two can't coexist on one type. This makes the
101+ // base drop its public failable init?(_:) so the compat layer's non-failable
102+ // init(_:) is the sole one (see FilePathStringBridging.swift / the compat
103+ // FilePathString.swift PORT note).
104+ . define( " FILEPATH_SYSTEM_STRING_COMPAT " ) ,
105+ // The base is 9999-gated; the swift-system substrate that calls it is not.
106+ // Disable enforcement (matches the prep's consumer targets).
107+ . unsafeFlags( [ " -Xfrontend " , " -disable-availability-checking " ] ) ,
88108]
89109
90110let cSettings : [ CSetting ] = [
0 commit comments