Skip to content

PGI: Remove -A from the C++ flags we use when CXX_EXTENSIONS is OFF

Tin Huynh requested to merge tinlun123/_cmake:master into master

Since !784 (merged), we have passed the -A flag to the PGI C++ compiler when specifying a C++ standard flag with compiler extensions turned off. The flag is not meant for that. The PGI C++ standard flags do not turn extensions on by default and have a separate --gnu_extensions flag for that which we already use when CXX_EXTENSIONS is ON. Simply drop the -A flag.

Fixes: #20997 (closed)
Topic-rename: pgi-no-A

Edited by Brad King

Merge request reports