Fix `strip_symbols.sh` on mac; bump libc to include utime.h (#116)

* strip_symbols.sh: make it work on mac as well

* wasi-libc: added utime, point at master
pull/120/head wasi-sdk-9
Pat Hickey 5 years ago committed by GitHub
parent b00a73afa2
commit d5e91f6f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 018057e043b82031e44a273790098eb8d3121619
Subproject commit 7b92f334e69c60a1d1c5d3e289790d790b9a185b

@ -1,8 +1,14 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e
DIRECTORY=${1:-/opt/wasi-sdk/bin}
if [[ "$OSTYPE" == "darwin"* ]]; then
# macos find doesnt support -executable so we fall back on having a permission
# bit to execute:
EXECUTABLES=$(find ${DIRECTORY} -type f -perm +111)
else
EXECUTABLES=$(find ${DIRECTORY} -type f -executable)
fi
for e in ${EXECUTABLES}; do
echo "Stripping symbols: ${e}"
strip ${e} || echo "Failed to strip symbols for ${e}; continuing on."

Loading…
Cancel
Save