Skip to content

Commit 44c4b1e

Browse files
authored
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.
1 parent 153f632 commit 44c4b1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ CFLAGS += -I$(LIBC_BOTTOM_HALF_CLOUDLIBC_SRC)
397397
endif
398398

399399
ifeq ($(WASI_SNAPSHOT), p2)
400-
EXTRA_CFLAGS += -D__wasilibc_use_wasip2
400+
CFLAGS += -D__wasilibc_use_wasip2
401401
endif
402402

403403
# Expose the public headers to the implementation. We use `-isystem` for

0 commit comments

Comments
 (0)