From 2ee33c1536bca6753d59f00fd1e79b75793690e2 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 20 May 2024 12:55:38 -0700 Subject: [PATCH] Use a different makefile variable for `-D__wasilibc_use_wasip2` This switches from `EXTRA_CFLAGS` to `CFLAGS` so when `EXTRA_CFLAGS` is in the environment to specify `-g`, for example, it doesn't override p2-handling logic. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b0407968..0cc5a62a 100644 --- a/Makefile +++ b/Makefile @@ -397,7 +397,7 @@ CFLAGS += -I$(LIBC_BOTTOM_HALF_CLOUDLIBC_SRC) endif ifeq ($(WASI_SNAPSHOT), p2) -EXTRA_CFLAGS += -D__wasilibc_use_wasip2 +CFLAGS += -D__wasilibc_use_wasip2 endif # Expose the public headers to the implementation. We use `-isystem` for