diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-06-06 19:36:44 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-06-06 19:36:44 (GMT) |
commit | de9491e3651350969b2a75c602984a3786656dcb (patch) | |
tree | e05eeec195ede16a5c41b9db9974561fb57b4206 /config/clang-flags | |
parent | f7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8 (diff) | |
download | hdf5-de9491e3651350969b2a75c602984a3786656dcb.zip hdf5-de9491e3651350969b2a75c602984a3786656dcb.tar.gz hdf5-de9491e3651350969b2a75c602984a3786656dcb.tar.bz2 |
Add flags from config/clang-warnings/*general files to H5 C and CXX flags for all versions of Clang and Clang++ compilers.
Switched from cut to awk in testcheck_version.sh.in to avoid dependence
on tab vs. " " in version definitions in H5public.h.
Diffstat (limited to 'config/clang-flags')
-rw-r--r-- | config/clang-flags | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/config/clang-flags b/config/clang-flags index 32c29d4..e7ade49 100644 --- a/config/clang-flags +++ b/config/clang-flags @@ -183,12 +183,8 @@ if test "X-clang" = "X-$cc_vendor" -o "X-Apple LLVM" = "X-$cc_vendor"; then # General # ########### - if test $cc_vers_major -eq 4 -a $cc_vers_minor -ge 2 -o $cc_vers_major -gt 4; then - H5_CFLAGS="$H5_CFLAGS $(load_clang_arguments general)" - fi -# if test $cc_vers_major -eq 4 -a $cc_vers_minor -ge 8 -o $cc_vers_major -gt 4; then -# H5_ECFLAGS="$H5_ECFLAGS $(load_clang_arguments error-general)" -# fi + H5_CFLAGS="$H5_CFLAGS $(load_clang_arguments general)" + H5_ECFLAGS="$H5_ECFLAGS $(load_clang_arguments error-general)" echo "H5_CFLAGS: $H5_CFLAGS" |