forked from microsoft/icu
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wasi-sdk flow
- Loading branch information
Showing
17 changed files
with
1,004 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# TODO: add other host platform/arch combinations | ||
UNAME_S := $(shell uname -s) | ||
UNAME_M := $(shell uname -m) | ||
UNAME_R := $(shell uname -r) | ||
|
||
ifeq ($(UNAME_S),Linux) | ||
HOST_PLATFORM=x86_64-pc-linux-gnu | ||
endif | ||
ifeq ($(UNAME_S),Darwin) | ||
ifeq ($(UNAME_M),arm64) | ||
HOST_PLATFORM=arm64-apple-darwin$(UNAME_R) | ||
endif | ||
ifeq ($(UNAME_M),x86_64) | ||
HOST_PLATFORM=x86_64-apple-darwin$(UNAME_R) | ||
endif | ||
endif | ||
ifeq ($(WASM_ENABLE_THREADS),true) | ||
THREADS_FLAG="-pthread" | ||
endif | ||
|
||
CONFIGURE_COMPILER_FLAGS += \ | ||
CFLAGS="-Oz -fno-exceptions -Wno-sign-compare $(THREADS_FLAG) $(ICU_DEFINES)" \ | ||
CXXFLAGS="-Oz -fno-exceptions -Wno-sign-compare $(THREADS_FLAG) $(ICU_DEFINES)" \ | ||
CC="$(WASI_SDK_PATH)/bin/clang --sysroot=$(WASI_SDK_PATH)/share/wasi-sysroot" \ | ||
CXX="$(WASI_SDK_PATH)/bin/clang++ --sysroot=$(WASI_SDK_PATH)/share/wasi-sysroot" \ | ||
--host=$(HOST_PLATFORM) --build=wasm32 | ||
|
||
check-env: | ||
: |
File renamed without changes.
Oops, something went wrong.