Repository: lucy-clownfish
Updated Branches:
  refs/heads/master 9f31a790e -> ce5e65bb0


Disable threads under Perl < 5.8.7

Thread safety requires the CLONE_SKIP method introduced in Perl 5.8.7.

Fixes CLOWNFISH-92.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/3fcd4281
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/3fcd4281
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/3fcd4281

Branch: refs/heads/master
Commit: 3fcd4281a84a9936051189fbff339a7a8c0c435c
Parents: 9f31a79
Author: Nick Wellnhofer <[email protected]>
Authored: Sat Aug 6 16:58:36 2016 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Sat Aug 6 17:13:00 2016 +0200

----------------------------------------------------------------------
 compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/3fcd4281/compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm
----------------------------------------------------------------------
diff --git a/compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm 
b/compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm
index 559d549..9d8e232 100644
--- a/compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm
+++ b/compiler/perl/lib/Clownfish/CFC/Perl/Build/Charmonic.pm
@@ -99,7 +99,8 @@ sub ACTION_charmony {
              '--enable-makefile';
         $self->add_to_cleanup('Makefile');
     }
-    if ( !$self->config('usethreads') ) {
+    # Perl 5.8.7 added support for CLONE_SKIP.
+    if ( !$self->config('usethreads') || $^V lt v5.8.7 ) {
         push @command, '--disable-threads';
     }
     push @command, (

Reply via email to