From 44c4b1e3a58f5c3042fa26dff9c1b29b6fc695b2 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 21 May 2024 09:36:55 -0500 Subject: [PATCH] Use a different makefile variable for `-D__wasilibc_use_wasip2` (#499) 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 1daa9a5d..812790f0 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