summaryrefslogtreecommitdiff
path: root/m4/ax_cc_maxopt.m4
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2022-02-11 10:57:50 +0100
committerGitHub <noreply@github.com>2022-02-11 10:57:50 +0100
commit8292a7be113780bd3e930a735ddf96208d11a81f (patch)
treea6ea5eae00275926b585fa92bace1ab8a5a07b76 /m4/ax_cc_maxopt.m4
parent6626f16da14388791954aec4856c79182d7909ab (diff)
parent70f4ba35b654231761c7286e8e921068adaeb266 (diff)
downloadautoconf-archive-8292a7be113780bd3e930a735ddf96208d11a81f.tar.gz
Merge pull request #240 from chuckatkins/detect-nvhpc
AX_COMPILER_VENDOR: Add support for the NVIDIA HPC Compiler
Diffstat (limited to 'm4/ax_cc_maxopt.m4')
-rw-r--r--m4/ax_cc_maxopt.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/ax_cc_maxopt.m4 b/m4/ax_cc_maxopt.m4
index ac999db..a6e573f 100644
--- a/m4/ax_cc_maxopt.m4
+++ b/m4/ax_cc_maxopt.m4
@@ -143,6 +143,10 @@ if test "x$ac_test_CFLAGS" = "x"; then
fi
;;
+ nvhpc)
+ # default optimization flags for nvhpc
+ CFLAGS="$CFLAGS -O3"
+
gnu)
# default optimization flags for gcc on all systems
CFLAGS="$CFLAGS -O3 -fomit-frame-pointer"