Skip to content

Commit 28519b6

Browse files
authored
Merge pull request #70417 from tshortli/revert-stubbing-unavailable-decls-by-default
Frontend: Temporarily disable stubbing unavailable decls
2 parents 25faa00 + ad604f2 commit 28519b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ namespace swift {
198198

199199
/// Optimization mode for unavailable declarations.
200200
UnavailableDeclOptimization UnavailableDeclOptimizationMode =
201-
UnavailableDeclOptimization::Stub;
201+
UnavailableDeclOptimization::None;
202202

203203
/// Causes the compiler to use weak linkage for symbols belonging to
204204
/// declarations introduced at the deployment target.

test/Interpreter/unavailable_decl_optimization_stub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -module-name main %s -o %t/a.out
2+
// RUN: %target-build-swift -module-name main -Xfrontend -unavailable-decl-optimization=stub %s -o %t/a.out
33
// RUN: %target-codesign %t/a.out
44
// RUN: %target-run %t/a.out > %t/output 2>&1 || true
55
// RUN: %FileCheck %s < %t/output

0 commit comments

Comments
 (0)