Skip to content

Commit 9df77e9

Browse files
committed
Add a stub constructor for LangOptions.
Having an out-of-line definition for the LangOptions constructor makes it easier to enable experimental features one at a time for a build, without rebuilding everything.
1 parent b247c6d commit 9df77e9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ namespace swift {
529529
return ActiveConcurrencyModel == ConcurrencyModel::TaskToThread;
530530
}
531531

532+
LangOptions();
533+
532534
/// Sets the target we are building for and updates platform conditions
533535
/// to match.
534536
///

lib/Basic/LangOptions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
using namespace swift;
3131

32+
LangOptions::LangOptions() {
33+
// Note: Introduce default-on language options here.
34+
}
35+
3236
struct SupportedConditionalValue {
3337
StringRef value;
3438

0 commit comments

Comments
 (0)