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.
This commit is contained in:
Alex Crichton 2024-05-21 09:36:55 -05:00 committed by GitHub
parent 153f6321bb
commit 44c4b1e3a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,7 +397,7 @@ CFLAGS += -I$(LIBC_BOTTOM_HALF_CLOUDLIBC_SRC)
endif endif
ifeq ($(WASI_SNAPSHOT), p2) ifeq ($(WASI_SNAPSHOT), p2)
EXTRA_CFLAGS += -D__wasilibc_use_wasip2 CFLAGS += -D__wasilibc_use_wasip2
endif endif
# Expose the public headers to the implementation. We use `-isystem` for # Expose the public headers to the implementation. We use `-isystem` for