Skip to content

Commit

Permalink
chore: default parseQuotWithCurrentStage to true in stage 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Nov 25, 2024
1 parent 884a9ea commit 620ead5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/stdlib_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ options get_default_options() {
#if LEAN_IS_STAGE0 == 1
// switch to `true` for ABI-breaking changes affecting meta code
opts = opts.update({"interpreter", "prefer_native"}, false);
// switch to `true` for changing built-in parsers used in quotations
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
// toggling `parseQuotWithCurrentStage` may also require toggling the following option if macros/syntax
// switch to `false` when enabling `prefer_native` should also affect use
// of built-in parsers in quotations
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
// changes to built-in parsers may also require toggling the following option if macros/syntax
// with custom precheck hooks were affected
opts = opts.update({"quotPrecheck"}, true);

Expand Down
7 changes: 4 additions & 3 deletions stage0/src/stdlib_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ options get_default_options() {
#if LEAN_IS_STAGE0 == 1
// switch to `true` for ABI-breaking changes affecting meta code
opts = opts.update({"interpreter", "prefer_native"}, false);
// switch to `true` for changing built-in parsers used in quotations
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
// toggling `parseQuotWithCurrentStage` may also require toggling the following option if macros/syntax
// switch to `false` when enabling `prefer_native` should also affect use
// of built-in parsers in quotations
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
// changes to built-in parsers may also require toggling the following option if macros/syntax
// with custom precheck hooks were affected
opts = opts.update({"quotPrecheck"}, true);

Expand Down

0 comments on commit 620ead5

Please sign in to comment.