diff options
Diffstat (limited to 'config/intel-flags')
-rw-r--r-- | config/intel-flags | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/config/intel-flags b/config/intel-flags index fa317ab..f46da0a 100644 --- a/config/intel-flags +++ b/config/intel-flags @@ -78,14 +78,17 @@ if test "X-icc" = "X-$cc_vendor"; then # ;; #esac - # General + ########### + # General # + ########### + # Default to C99 standard. H5_CFLAGS="$H5_CFLAGS $arch -std=c99" ############## # Production # ############## - + PROD_CFLAGS= ######### @@ -154,6 +157,17 @@ if test "X-icc" = "X-$cc_vendor"; then H5_CFLAGS="$H5_CFLAGS $(load_intel_arguments 15)" fi + # intel >= 18 + if test $cc_vers_major -ge 18; then + H5_CFLAGS="$H5_CFLAGS $(load_intel_arguments 18)" + fi + + # intel <= 19 + # this file has warnings only available before oneapi versions + if test $cc_vers_major -le 19; then + H5_CFLAGS="$H5_CFLAGS $(load_intel_arguments general-19)" + fi + ################# # Flags are set # ################# @@ -165,4 +179,3 @@ if test "X-$cc_flags_set" = "X-"; then cc_vendor= cc_version= fi - |