Repository: lucy-charmonizer
Updated Branches:
  refs/heads/master 79216ae87 -> 4cb27bbbd


Fix command_with_libpath on Windows


Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/2a5a509d
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/2a5a509d
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/2a5a509d

Branch: refs/heads/master
Commit: 2a5a509dbf1dbf4aa4a41e98b6aeb2758274d53b
Parents: 79216ae
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Jul 12 11:45:37 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Jul 12 11:45:37 2015 +0200

----------------------------------------------------------------------
 src/Charmonizer/Core/Make.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/2a5a509d/src/Charmonizer/Core/Make.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/Make.c b/src/Charmonizer/Core/Make.c
index 1063bf3..34a5364 100644
--- a/src/Charmonizer/Core/Make.c
+++ b/src/Charmonizer/Core/Make.c
@@ -709,7 +709,10 @@ chaz_MakeRule_add_command_with_libpath(chaz_MakeRule *rule,
         path = chaz_Util_vjoin(";", args);
         va_end(args);
 
-        lib_command = chaz_Util_join("", "path ", path, ";%path% && ", command,
+        /* It's important to not add a space before `&&`. Otherwise, the
+        * space is added to the search path.
+        */
+        lib_command = chaz_Util_join("", "path ", path, ";%path%&& ", command,
                                      NULL);
     }
     else {

Reply via email to