aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-01-05 13:22:27 +0000
committergingerBill <bill@gingerbill.org>2025-01-05 13:33:06 +0000
commitbca08d3b85f59c35f4eb43731099bc96730b12cd (patch)
treeac247ee6688756e32213bf969ca2b23f8cb9a354 /src/parser.cpp
parent2efe4c2d68f486006e405ba7d30be03ec121ae6c (diff)
Make `-no-dynamic-literals` the default now
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 01ed46ebc..e190bc5a5 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -6320,7 +6320,7 @@ gb_internal u64 parse_feature_tag(Token token_for_pos, String s) {
}
}
- u64 flag = get_vet_flag_from_name(p);
+ u64 flag = get_feature_flag_from_name(p);
if (flag != OptInFeatureFlag_NONE) {
if (is_notted) {
feature_not_flags |= flag;
@@ -6473,7 +6473,7 @@ gb_internal bool parse_file_tag(const String &lc, const Token &tok, AstFile *f)
} else if (lc == "no-instrumentation") {
f->flags |= AstFile_NoInstrumentation;
} else if (string_starts_with(lc, str_lit("feature"))) {
- f->feature_flags = parse_feature_tag(tok, lc);
+ f->feature_flags |= parse_feature_tag(tok, lc);
f->feature_flags_set = true;
} else {
error(tok, "Unknown tag '%.*s'", LIT(lc));