lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [1/2] git commit: Search all of @INC for library files
Date Sun, 20 Jul 2014 15:04:51 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/windows_fixes_for_0.4 2493f9006 -> e37455efd


Search all of @INC for library files

Needed to make the Lucy build work on Windows if Clownfish is
in a non-standard location.


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

Branch: refs/heads/windows_fixes_for_0.4
Commit: 6ba9f7ffc9b2a72a5761c8cdbfc112dda3ebc226
Parents: 2493f90
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Jul 20 16:59:41 2014 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Jul 20 17:01:42 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/6ba9f7ff/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
----------------------------------------------------------------------
diff --git a/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm b/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
index 1b6c04f..dc1d285 100644
--- a/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
+++ b/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
@@ -144,10 +144,9 @@ sub cf_linker_flags {
     # Link against import library on MSVC
     my $ext          = $Config{cc} =~ /^cl\b/ ? 'lib' : $dlext;
 
-    for my $location ( qw( site vendor ) ) {
-        my $install_dir = $Config{"install${location}arch"};
+    for my $dir (@INC) {
         my $lib_file = catfile(
-            $install_dir, 'auto', @module_parts, "$class_name.$ext",
+            $dir, 'auto', @module_parts, "$class_name.$ext",
         );
         return ( $lib_file ) if -f $lib_file;
     }


Mime
View raw message