forked from emscripten-core/emsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept for emcmake toolchain registration
INCOMPLETE, see proxy-wasm/proxy-wasm-cpp-sdk#157 Signed-off-by: Martijn Stevenson <[email protected]>
- Loading branch information
1 parent
350c19a
commit a871cd0
Showing
5 changed files
with
43 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@ECHO OFF | ||
|
||
call external\emsdk\emscripten_toolchain\env.bat | ||
|
||
py -3 %EMSCRIPTEN%\emcmake.py %* |
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,5 @@ | ||
#!/bin/bash | ||
|
||
source $(dirname $0)/env.sh | ||
|
||
exec python3 $EMSCRIPTEN/emcmake.py "$@" |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
def register_emscripten_toolchains(): | ||
native.register_toolchains(str(Label("//emscripten_toolchain:cc-toolchain-wasm"))) | ||
native.register_toolchains(str(Label("//emscripten_toolchain:cmake-toolchain-wasm"))) |