diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-06-02 20:53:58 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-06-02 20:53:58 (GMT) |
commit | f7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8 (patch) | |
tree | 9d65d1c99634e6bdd9cdcc969f96a12127b7ed6f /config/apple | |
parent | 0b9979f0752caf7283a0bc367d3bcd4d0b151480 (diff) | |
download | hdf5-f7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8.zip hdf5-f7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8.tar.gz hdf5-f7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8.tar.bz2 |
Add files for adding warning flags for clang compilers in autotools
configure.
Diffstat (limited to 'config/apple')
-rw-r--r-- | config/apple | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/apple b/config/apple index 0b15dfe..aba48d1 100644 --- a/config/apple +++ b/config/apple @@ -49,6 +49,7 @@ fi # Figure out compiler flags . $srcdir/config/gnu-flags +. $srcdir/config/clang-flags # temp patch: if GCC 4.2.1 is used in Lion or Mountain Lion systems, do not # use -O option as it causes failures in test/dt_arith. case "$host_os" in @@ -155,11 +156,13 @@ esac # get c++ version info case $CXX in clang++) + . $srcdir/config/clang-cxxflags cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS --version 2>&1 |\ grep 'Apple' | sed 's/(.*//'` ;; *g++*) + . $srcdir/config/gnu-cxxflags cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS --version 2>&1 |\ grep 'GCC' | sed 's/.*\((GCC) [-a-z0-9\. ]*.*\)/\1/'` ;; |