From 882ca93f89f2b053c4921cc2261827baca0c6616 Mon Sep 17 00:00:00 2001 From: Kakadu Date: Sun, 14 Feb 2021 18:54:44 +0300 Subject: [PATCH] Allow to specify C compiler when building runtime Try something like `make -C runtime CC=clang-11 all`. It was tested only on GNU/Linux Signed-off-by: Kakadu --- runtime/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/Makefile b/runtime/Makefile index 457906978..27657559f 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -1,12 +1,12 @@ + all: gc_runtime.o runtime.o - ar rc runtime.a gc_runtime.o runtime.o + ar rc runtime.a gc_runtime.o runtime.o gc_runtime.o: gc_runtime.s - gcc -g -fstack-protector-all -m32 -c gc_runtime.s + $(CC) -g -fstack-protector-all -m32 -c gc_runtime.s runtime.o: runtime.c - gcc -g -fstack-protector-all -m32 -c runtime.c + $(CC) -g -fstack-protector-all -m32 -c runtime.c clean: - rm -f *.a *.o *~ - + $(RM) *.a *.o *~