scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 98998b3ed59de16cd77a5b234eac69a8248e6096
parent 8840acc818b688a7b373106c0a466fdd56322d0d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  5 Nov 2024 12:29:24 +0100

build: Check for qbe in config

As many people will not read the full README they will try
to use scc without qbe, giving them an internal error. To
avoid that situation a check is done in config that can
detect that situation and it does not have effect after the
config is done.

Diffstat:
MMakefile | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -10,6 +10,11 @@ check_config: FORCE fi config: FORCE + @if ! command -v qbe > /dev/null;\ + then \ + echo "qbe code generator is required to use scc" >&2;\ + exit 1;\ + fi ./scripts/config $(MAKE) -f main.mk config