1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-20 08:18:29 +00:00

Invoke "command" with /bin/sh -c from makefile to avoid not-found errors

This commit is contained in:
Nick Briggs
2026-03-19 11:16:16 -07:00
parent bbe011c583
commit ee21e482a7

View File

@@ -4,8 +4,8 @@
# 2. If clang is installed use it.
# 3. Use gcc
EXISTS_GCC := $(shell command -v gcc)
EXISTS_CLANG := $(shell command -v clang)
EXISTS_GCC := $(shell /bin/sh -c command -v gcc)
EXISTS_CLANG := $(shell /bin/sh -c command -v clang)
ifeq ($(or $(EXISTS_GCC),$(EXISTS_CLANG)),)
$(error "Cannot find compiler: neither gcc nor clang. Exiting.")
endif