Skip to content

Commit 0d00a10

Browse files
author
Lean stage0 autoupdater
committed
chore: update stage0
1 parent 9d4bba9 commit 0d00a10

311 files changed

Lines changed: 174044 additions & 173431 deletions

File tree

Some content is hidden

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

stage0/src/CMakeLists.txt

Lines changed: 8 additions & 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: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
#include "util/options.h"
22

3+
// Should we test stage 2 and run update-stage0 on PR merge? NO
4+
// (change to "YES" to trigger)
5+
36
namespace lean {
4-
options get_default_options() {
7+
options get_option_overrides() {
58
options opts;
69
// see https://github.com/leanprover/lean4/blob/master/doc/dev/bootstrap.md#further-bootstrapping-complications
710
#if LEAN_IS_STAGE0 == 1
8-
// set to true to generally avoid bootstrapping issues limited to proofs
9-
opts = opts.update({"debug", "proofAsSorry"}, false);
10-
// set to true to generally avoid bootstrapping issues in `omega` and `grind`
11-
opts = opts.update({"debug", "terminalTacticsAsSorry"}, false);
12-
// switch to `true` for ABI-breaking changes affecting meta code;
11+
// uncomment to generally avoid bootstrapping issues limited to proofs
12+
//opts = opts.update({"debug", "proofAsSorry"}, true);
13+
14+
// uncomment to generally avoid bootstrapping issues in `omega` and `grind`
15+
//opts = opts.update({"debug", "terminalTacticsAsSorry"}, true);
16+
17+
// uncomment for ABI-breaking changes affecting meta code;
1318
// see also next option!
14-
opts = opts.update({"interpreter", "prefer_native"}, false);
15-
// switch to `false` when enabling `prefer_native` should also affect use
19+
//opts = opts.update({"interpreter", "prefer_native"}, true);
20+
21+
// uncomment when enabling `prefer_native` should also affect use
1622
// of built-in parsers in quotations; this is usually the case, but setting
1723
// both to `true` may be necessary for handling non-builtin parsers with
1824
// builtin elaborators
25+
// TODO: make consistent across stages
1926
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
20-
// changes to builtin parsers may also require toggling the following option if macros/syntax
21-
// with custom precheck hooks were affected
22-
opts = opts.update({"quotPrecheck"}, true);
23-
24-
opts = opts.update({"pp", "rawOnError"}, true);
2527

28+
// changes to builtin parsers may also require uncommenting the following option if macros/syntax
29+
// with custom precheck hooks were affected
30+
//opts = opts.update({"quotPrecheck"}, false);
2631
#endif
2732
return opts;
2833
}

stage0/src/util/options.cpp

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

stage0/stdlib/Init/Data/String/Substring.c

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

stage0/stdlib/Init/Grind/Ordered/Linarith.c

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

stage0/stdlib/Init/Grind/Ring/CommSolver.c

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

0 commit comments

Comments
 (0)