Last active
April 16, 2021 15:48
-
-
Save haampie/8e12787357310f0dc0faa3b1771848d6 to your computer and use it in GitHub Desktop.
Spack force release mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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