Invoke cocmd.com as a shell script when necessary

This commit is contained in:
Daroc Alden 2023-11-01 21:02:24 -04:00
parent 6ca5ab4680
commit 0c67326405

View file

@ -59,7 +59,15 @@
#
# build/config.mk
# Some versions of make can't invoke the bundled
# cocmd.com directly. If we can invoke it, use it
# directly as the shell. Otherwise, invoke it as a
# shell script to work around this.
ifeq ($((build/bootstrap/cocmd.com)),build/bootstrap/cocmd.com: error: wrong number of args)
SHELL = build/bootstrap/cocmd.com
else
.SHELLFLAGS = build/bootstrap/cocmd.com -c
endif
MAKEFLAGS += --no-builtin-rules
.SUFFIXES: