We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bfa1b5 + 3061564 commit 7eac199Copy full SHA for 7eac199
lib/IRGen/IRGenModule.cpp
@@ -1459,6 +1459,9 @@ void IRGenModule::addLinkLibrary(const LinkLibrary &linkLib) {
1459
// emit it into the IR of debugger expressions.
1460
if (Context.LangOpts.DebuggerSupport)
1461
return;
1462
+
1463
+ if (Context.LangOpts.hasFeature(Feature::Embedded))
1464
+ return;
1465
1466
switch (linkLib.getKind()) {
1467
case LibraryKind::Library: {
test/embedded/no-autolink.swift
@@ -0,0 +1,11 @@
1
+// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
3
+// REQUIRES: VENDOR=apple
4
+// REQUIRES: OS=macosx
5
6
+public func staticstring() -> StaticString {
7
+ return "hello"
8
+}
9
10
+// CHECK: !llvm.linker.options = !{}
11
+// CHECK-NOT: -lswiftCore
0 commit comments