Skip to content

Commit

Permalink
Disable assertions for optimized builds
Browse files Browse the repository at this point in the history
Enabling `-gnata` and `-O` at the same time leads to very long build
times.

Ref. #911
  • Loading branch information
treiher committed Jan 26, 2022
1 parent a5377ff commit 6bb7e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defaults.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ abstract project Defaults is
GNATA := "-gnata";

case Mode is
when "strict" =>
when "strict" | "optimized" =>
GNATA := "";
when "asserts_enabled" | "optimized" | "runtime_compatible" =>
when "asserts_enabled" | "runtime_compatible" =>
end case;

Proof_Switches :=
Expand Down

0 comments on commit 6bb7e63

Please sign in to comment.