Skip to content

Commit

Permalink
Merge up
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Sep 14, 2023
2 parents 0da841c + 8d8f25d commit f2bce14
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 153 deletions.
7 changes: 5 additions & 2 deletions src/classic/clvm_tools/clvmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ pub fn compile_clvm_text_maybe_opt(
let dialect = detect_modern(allocator, assembled_sexp);
// Now the stepping is optional (None for classic) but we may communicate
// other information in dialect as well.
if let Some(dialect) = dialect.stepping {
//
// I think stepping is a good name for the number below as dialect is going
// to get more members that are somewhat independent.
if let Some(stepping) = dialect.stepping {
let runner = Rc::new(DefaultProgramRunner::new());
let opts = opts
.set_optimize(do_optimize)
.set_frontend_opt(dialect > 21);
.set_frontend_opt(stepping > 21);

let unopt_res = compile_file(allocator, runner.clone(), opts, text, symbol_table);
let res = if do_optimize {
Expand Down
Loading

0 comments on commit f2bce14

Please sign in to comment.