lean4-htt/src/stdlib_flags.h
2022-06-27 22:37:02 +02:00

16 lines
581 B
C++

#include "util/options.h"
namespace lean {
options get_default_options() {
options opts;
// see https://leanprover.github.io/lean4/doc/make/index.html#further-bootstrapping-complications
#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);
opts = opts.update({"pp", "rawOnError"}, true);
#endif
return opts;
}
}