Lorenz (xha): 1 hard-code $(CC) to equal "cc" 1 files changed, 1 insertions(+), 0 deletions(-)
Thanks, that's now pushed. Sorry for the delay.
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.sr.ht/~mpu/qbe/patches/47424/mbox | git am -3
this fixes the build on FreeBSD, where the value of $(CC) recently changed from "cc" (13.2) to "c99" (14).
Roberto E. Vargas Caballero <k0ga@shike2.com> 9 months ago The value of CC changes because the first line of the Makefile is .POSIX: if you remove .POSIX then I think it will not change CC to c99 but it would keep it as cc. If you say that your makefile is portable then it should be true. Lorenz (xha) <me@xha.li> 9 months ago what do you think is more portable? 1. rely on features that $(CC) doesn't have according to POSIX 2. CC = cc Regards,
The value of CC changes because the first line of the Makefile is .POSIX: if you remove .POSIX then I think it will not change CC to c99 but it would keep it as cc. If you say that your makefile is portable then it should be true.
Lorenz (xha) <me@xha.li> 9 months ago what do you think is more portable? 1. rely on features that $(CC) doesn't have according to POSIX 2. CC = cc
what do you think is more portable? 1. rely on features that $(CC) doesn't have according to POSIX 2. CC = cc
Regards,
Signed-off-by: Lorenz (xha) <me@xha.li> --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 3266c76..f5e8a76 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ OBJ = $(COMMOBJ) $(AMD64OBJ) $(ARM64OBJ) $(RV64OBJ) SRCALL = $(OBJ:.o=.c) +CC = cc CFLAGS = -std=c99 -g -Wall -Wextra -Wpedantic qbe: $(OBJ) -- 2.43.0
Lorenz (xha) <me@xha.li> 9 months ago *ping*
*ping*
Roberto E. Vargas Caballero <k0ga@shike2.com> 9 months ago Hi,
Hi,