Skip to content

Commit

Permalink
Use a different makefile variable for -D__wasilibc_use_wasip2 (#499)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton authored May 21, 2024
1 parent 153f632 commit 44c4b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44c4b1e

Please sign in to comment.