Skip to content

Commit b378fe9

Browse files
author
Lean stage0 autoupdater
committed
chore: update stage0
1 parent 5f1ff42 commit b378fe9

File tree

302 files changed

+94221
-105508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+94221
-105508
lines changed

stage0/src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0/src/kernel/type_checker.cpp

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0/src/runtime/load_dynlib.cpp

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0/src/runtime/load_dynlib.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0/src/stdlib_flags.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ options get_default_options() {
55
options opts;
66
// see https://lean-lang.org/lean4/doc/dev/bootstrap.html#further-bootstrapping-complications
77
#if LEAN_IS_STAGE0 == 1
8-
// switch to `true` for ABI-breaking changes affecting meta code
8+
// set to true to generally avoid bootstrapping issues limited to tactic
9+
// blocks in stage 1
10+
opts = opts.update({"debug", "byAsSorry"}, false);
11+
// switch to `true` for ABI-breaking changes affecting meta code;
12+
// see also next option!
913
opts = opts.update({"interpreter", "prefer_native"}, false);
10-
// switch to `true` for changing built-in parsers used in quotations
11-
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
12-
// toggling `parseQuotWithCurrentStage` may also require toggling the following option if macros/syntax
14+
// switch to `false` when enabling `prefer_native` should also affect use
15+
// of built-in parsers in quotations; this is usually the case, but setting
16+
// both to `true` may be necessary for handling non-builtin parsers with
17+
// builtin elaborators
18+
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
19+
// changes to builtin parsers may also require toggling the following option if macros/syntax
1320
// with custom precheck hooks were affected
1421
opts = opts.update({"quotPrecheck"}, true);
1522

stage0/src/util/shell.cpp

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stage0/stdlib/Init/Data.c

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)