Skip to content

Commit 7fe0912

Browse files
authored
[lldb] Change swift-allow-explicit-modules setting default to true (#8307)
1 parent af3390e commit 7fe0912

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lldb/source/Target/Target.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4949,9 +4949,9 @@ bool TargetProperties::GetSwiftAllowExplicitModules() const {
49494949
if (exp_values)
49504950
return exp_values
49514951
->GetPropertyAtIndexAs<bool>(ePropertySwiftAllowExplicitModules)
4952-
.value_or(false);
4952+
.value_or(true);
49534953

4954-
return false;
4954+
return true;
49554955
}
49564956

49574957
Args TargetProperties::GetSwiftPluginServerForPath() const {

lldb/source/Target/TargetProperties.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let Definition = "target_experimental" in {
3131
DefaultFalse,
3232
Desc<"Read full debug information from DWARF for Swift debugging, whenever possible">;
3333
def SwiftAllowExplicitModules: Property<"swift-allow-explicit-modules", "Boolean">,
34-
DefaultFalse,
34+
DefaultTrue,
3535
Desc<"Allows explicit module flags to be passed through to ClangImporter.">;
3636
}
3737

lldb/test/API/lang/swift/explicit_modules/TestSwiftExplicitModules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
class TestSwiftExplicitModules(lldbtest.TestBase):
99

1010
@swiftTest
11-
@skipUnlessDarwin # FIXME.
1211
def test_any_type(self):
1312
"""Test explicit Swift modules"""
1413
self.build()

0 commit comments

Comments
 (0)