projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1e11e51
)
Only (attempt to) build for wasm32 when we're building nostd
author
Matt Corallo
<git@bluematt.me>
Thu, 22 Apr 2021 02:33:35 +0000
(
02:33
+0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 22 Apr 2021 02:43:03 +0000
(
02:43
+0000)
genbindings.sh
patch
|
blob
|
history
diff --git
a/genbindings.sh
b/genbindings.sh
index a5c6bc18106bd36cd8140cff2f43e62aa6ac5728..7a876312ae2cc818533225ca81326e8f48adc526 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-247,7
+247,7
@@
if [ "$HOST_PLATFORM" != "host: x86_64-apple-darwin" -a "$CLANGPP" != "" ]; then
export CFLAGS_wasm32_wasi="-target wasm32"
fi
export CFLAGS_wasm32_wasi="-target wasm32"
fi
-if [ "$(rustc --print target-list | grep wasm32-wasi)" != "" ]; then
+if [ "$
2" = "false" -a "$
(rustc --print target-list | grep wasm32-wasi)" != "" ]; then
# Test to see if clang supports wasm32 as a target (which is needed to build rust-secp256k1)
echo "int main() {}" > genbindings_wasm_test_file.c
clang -nostdlib -o /dev/null --target=wasm32-wasi -Wl,--no-entry genbindings_wasm_test_file.c > /dev/null 2>&1 &&
# Test to see if clang supports wasm32 as a target (which is needed to build rust-secp256k1)
echo "int main() {}" > genbindings_wasm_test_file.c
clang -nostdlib -o /dev/null --target=wasm32-wasi -Wl,--no-entry genbindings_wasm_test_file.c > /dev/null 2>&1 &&