diff options
Diffstat (limited to 'build/cxx/intel/configure')
-rwxr-xr-x | build/cxx/intel/configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/cxx/intel/configure b/build/cxx/intel/configure index d044cab..7f79dd8 100755 --- a/build/cxx/intel/configure +++ b/build/cxx/intel/configure @@ -29,6 +29,19 @@ $echo cxx_intel=`read_path --command icpc` +# Determine the C++ standard. Intel C++ on GNU/Linux appears to use the +# same option and values as GCC. +# +cxx_intel_standard=`echo "$3" | sed -e 's/.*-std=\([^ ]*\).*/\1/' -e t -e d` + +if [ -z "$cxx_intel_standard" ]; then + cxx_intel_standard="gnu++98" +elif [ "$cxx_intel_standard" = "c++0x" ]; then + cxx_intel_standard="c++11" +elif [ "$cxx_intel_standard" = "gnu++0x" ]; then + cxx_intel_standard="gnu++11" +fi + # Pass cxx_extra_options and cxx_ld_extra_options since those # can affect the search paths (e.g., -m32). # |