Better cxx11/14/17 flags for GNU/Clang/Intel (#2539)
* Better cxx11/14 flags for GNU/Clang/Intel - GCC 4.8 only supports -std=c++1y for C++14 - Use CMake's rules for AppleClang to set cxx11 and cxx14 flags based on Apple Xcode/LLVM version - Use CMake's rules for Intel to add support for cxx14 flags based on Intel version. * Add cxx17_flag property Implement property in compiler for c++17 as per those for c++11/14. Add concrete support for GNU/Clang: - Return -std=c++1z for GCC 5 and above per GCC documentation - Return -std=c++1z for Clang 3.5 and above per Clang documentation - Return -std=c++1z for Apple LLVM 6.1 and above per CMake's rules
Showing
- lib/spack/spack/compiler.py 10 additions, 0 deletionslib/spack/spack/compiler.py
- lib/spack/spack/compilers/clang.py 38 additions, 2 deletionslib/spack/spack/compilers/clang.py
- lib/spack/spack/compilers/gcc.py 9 additions, 0 deletionslib/spack/spack/compilers/gcc.py
- lib/spack/spack/compilers/intel.py 10 additions, 0 deletionslib/spack/spack/compilers/intel.py
Loading
Please register or sign in to comment