Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Spack force release mode
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 4d8c4644cb..3c4dcb35a7 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -384,6 +384,13 @@ while [ $# -ne 0 ]; do
other_args+=("$1")
fi
;;
+ -O0,-O1,-O2,-O3,-Os,-Ofast,-O)
+ # Always use -O3
+ other_args+=("-O3")
+ ;;
+ -g,-Werror)
+ # Drop debug symbols and never treat all warnings as errors
+ ;;
*)
if [[ "$1" = "$dtags_to_strip" ]] ; then
: # We want to remove explicitly this flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment