Skip to content

Commit

Permalink
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion spec/spec_helper.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ENV["CRYSTAL_PATH"] = "#{__DIR__}/../src"
ENV["VERIFY"] = "1"

require "spec"
require "../src/compiler/crystal/**"
7 changes: 5 additions & 2 deletions src/compiler/crystal/codegen/codegen.cr
Original file line number Diff line number Diff line change
@@ -275,7 +275,6 @@ module Crystal
end

env_dump = ENV["DUMP"]?
env_verify = ENV["VERIFY"]? == "1"
case env_dump
when Nil
# Nothing
@@ -292,7 +291,11 @@ module Crystal

mod.dump if dump_all_llvm || name =~ dump_llvm_regex
# puts mod
mod.verify if env_verify

# Always run verifications so we can catch bugs earlier and more often.
# We can probably remove this, or only enable this when compiling in
# release mode, once we reach 1.0.
mod.verify
end
end

0 comments on commit 9412541

Please sign in to comment.