Skip to content

Commit f37ba16

Browse files
committed
[embedded] Disable building from textual interface files in Embedded Swift
1 parent 380f319 commit f37ba16

File tree

7 files changed

+1
-24
lines changed

7 files changed

+1
-24
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,6 +3701,7 @@ bool CompilerInvocation::parseArgs(
37013701
IRGenOpts.DisableLegacyTypeInfo = true;
37023702
IRGenOpts.ReflectionMetadata = ReflectionMetadataMode::None;
37033703
IRGenOpts.EnableReflectionNames = false;
3704+
FrontendOpts.DisableBuildingInterface = true;
37043705
TypeCheckerOpts.SkipFunctionBodies = FunctionBodySkipping::None;
37053706
SILOpts.SkipFunctionBodies = FunctionBodySkipping::None;
37063707
SILOpts.CMOMode = CrossModuleOptimizationMode::Everything;

test/embedded/concurrency-actors.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// REQUIRES: optimized_stdlib
1010
// REQUIRES: OS=macosx
1111

12-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
13-
// embedded Swift mode.
14-
// XFAIL: OS=macosx
15-
1612
import _Concurrency
1713

1814
actor Number {

test/embedded/concurrency-async-let.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// REQUIRES: optimized_stdlib
1010
// REQUIRES: OS=macosx
1111

12-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
13-
// embedded Swift mode.
14-
// XFAIL: OS=macosx
15-
1612
import _Concurrency
1713

1814
func fib(_ n: Int) -> Int {

test/embedded/concurrency-simple.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// REQUIRES: optimized_stdlib
1010
// REQUIRES: OS=macosx
1111

12-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
13-
// embedded Swift mode.
14-
// XFAIL: OS=macosx
15-
1612
import _Concurrency
1713

1814
public func test() async -> Int {

test/embedded/darwin-bridging-header.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
// REQUIRES: VENDOR=apple
1212
// REQUIRES: OS=macosx
1313

14-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
15-
// embedded Swift mode.
16-
// XFAIL: OS=macosx
17-
1814
// BEGIN BridgingHeader.h
1915

2016
#include <unistd.h>

test/embedded/darwin.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// REQUIRES: VENDOR=apple
1010
// REQUIRES: OS=macosx
1111

12-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
13-
// embedded Swift mode.
14-
// XFAIL: OS=macosx
15-
1612
import Darwin
1713

1814
@main

test/embedded/dependencies-concurrency.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@
4747
// REQUIRES: optimized_stdlib
4848
// REQUIRES: OS=macosx
4949

50-
// The Darwin SDK overlay module in the macOS SDK cannot be imported in
51-
// embedded Swift mode.
52-
// XFAIL: OS=macosx
53-
5450
import _Concurrency
5551

5652
public func test() async -> Int {

0 commit comments

Comments
 (0)