File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,10 @@ extension Driver {
367
367
try commandLine. appendLast ( . disableSandbox, from: & parsedOptions)
368
368
}
369
369
370
+ if isFrontendArgSupported ( . disableDynamicActorIsolation) {
371
+ try commandLine. appendLast ( . disableDynamicActorIsolation, from: & parsedOptions)
372
+ }
373
+
370
374
if !directModuleCC1Mode, let workingDirectory = workingDirectory {
371
375
// Add -Xcc -working-directory before any other -Xcc options to ensure it is
372
376
// overridden by an explicit -Xcc -working-directory, although having a
Original file line number Diff line number Diff line change @@ -3859,6 +3859,19 @@ final class SwiftDriverTests: XCTestCase {
3859
3859
XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -enable-bare-slash-regex " ) ) )
3860
3860
}
3861
3861
3862
+ func testDisableDynamicActorIsolation( ) throws {
3863
+ var driver = try Driver ( args: [ " swiftc " , " test.swift " , " -disable-dynamic-actor-isolation " ] )
3864
+ guard driver. isFrontendArgSupported ( . disableDynamicActorIsolation) else {
3865
+ throw XCTSkip ( " Skipping: compiler does not support '-disable-dynamic-actor-isolation' " )
3866
+ }
3867
+ let plannedJobs = try driver. planBuild ( )
3868
+ XCTAssertEqual ( plannedJobs. count, 2 )
3869
+ XCTAssertEqual ( plannedJobs [ 0 ] . kind, . compile)
3870
+ XCTAssertEqual ( plannedJobs [ 1 ] . kind, . link)
3871
+ XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -frontend " ) ) )
3872
+ XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -disable-dynamic-actor-isolation " ) ) )
3873
+ }
3874
+
3862
3875
func testImmediateMode( ) throws {
3863
3876
do {
3864
3877
var driver = try Driver ( args: [ " swift " , " foo.swift " ] )
You can’t perform that action at this time.
0 commit comments