This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the -Wthread-safety also only for clang 3.6 (6.1) or later.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 3 Dec 2015 12:00:16 +0000 (07:00 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 3 Dec 2015 12:13:31 +0000 (07:13 -0500)
(follow-up to bdc795f4, suggested by Aaron Crane)

cflags.SH

index 2aee426..a50044e 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -378,14 +378,14 @@ do
   esac
 done
 
-# If usethreads and clang, add -Wthread-safety for clang 3.5 or later.
+# If usethreads and clang, add -Wthread-safety for clang 3.6 or later.
 # gccversion is defined also for clang, because compat, use that for matching.
-# Apple overwrites clang version with XCode version.
-# Aggressively forward-proofing.
+# Apple overwrites clang version with XCode version, see hints/darwin.sh
+# for the gory details.  Aggressively forward-proofing.
 case "$usethreads" in
 define)
 case "$gccversion" in
-*" Clang 3."[56789]*|*" Clang "[456]*|*"Apple LLVM "[6789]*)
+*" Clang 3."[56789]*|*" Clang "[456]*|*"Apple LLVM 6.1"*|*"Apple LLVM "[789]*)
   for f in -Wthread-safety
   do
     case " $warn " in