Browse Source

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.
pull/504/head
Alex Crichton 6 months ago
committed by GitHub
parent
commit
44c4b1e3a5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      Makefile

2
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

Loading…
Cancel
Save