Skip to content

Commit b70be4b

Browse files
committed
Ensure that bin-wrappers/* targets adds .exe if necessary
When compiling with Visual Studio, the projects' names are identical to the executables modulo the extensions. Which means that the bin-wrappers *need* to target the .exe files lest they try to execute directories. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 803a592 commit b70be4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ bin-wrappers/%: wrap-for-bin.sh
22682268
@mkdir -p bin-wrappers
22692269
$(QUIET_GEN)sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
22702270
-e 's|@@BUILD_DIR@@|$(shell pwd)|' \
2271-
-e 's|@@PROG@@|$(patsubst test-%,t/helper/test-%,$(@F))|' < $< > $@ && \
2271+
-e 's|@@PROG@@|$(patsubst test-%,t/helper/test-%$(X),$(@F))$(patsubst git%,$(X),$(filter $(@F),$(BINDIR_PROGRAMS_NEED_X)))|' < $< > $@ && \
22722272
chmod +x $@
22732273

22742274
# GNU make supports exporting all variables by "export" without parameters.

0 commit comments

Comments
 (0)