File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,10 @@ extension Driver {
374
374
try commandLine. appendLast ( . disableSandbox, from: & parsedOptions)
375
375
}
376
376
377
+ if isFrontendArgSupported ( . disableDynamicActorIsolation) {
378
+ try commandLine. appendLast ( . disableDynamicActorIsolation, from: & parsedOptions)
379
+ }
380
+
377
381
if !directModuleCC1Mode, let workingDirectory = workingDirectory {
378
382
// Add -Xcc -working-directory before any other -Xcc options to ensure it is
379
383
// overridden by an explicit -Xcc -working-directory, although having a
Original file line number Diff line number Diff line change @@ -3908,6 +3908,19 @@ final class SwiftDriverTests: XCTestCase {
3908
3908
XCTAssertJobInvocationMatches ( plannedJobs [ 0 ] , . flag( " -enable-bare-slash-regex " ) )
3909
3909
}
3910
3910
3911
+ func testDisableDynamicActorIsolation( ) throws {
3912
+ var driver = try Driver ( args: [ " swiftc " , " test.swift " , " -disable-dynamic-actor-isolation " ] )
3913
+ guard driver. isFrontendArgSupported ( . disableDynamicActorIsolation) else {
3914
+ throw XCTSkip ( " Skipping: compiler does not support '-disable-dynamic-actor-isolation' " )
3915
+ }
3916
+ let plannedJobs = try driver. planBuild ( )
3917
+ XCTAssertEqual ( plannedJobs. count, 2 )
3918
+ XCTAssertEqual ( plannedJobs [ 0 ] . kind, . compile)
3919
+ XCTAssertEqual ( plannedJobs [ 1 ] . kind, . link)
3920
+ XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -frontend " ) ) )
3921
+ XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -disable-dynamic-actor-isolation " ) ) )
3922
+ }
3923
+
3911
3924
func testImmediateMode( ) throws {
3912
3925
do {
3913
3926
var driver = try Driver ( args: [ " swift " , " foo.swift " ] )
You can’t perform that action at this time.
0 commit comments