Skip to content

Commit d5e91f6

Browse files
author
Pat Hickey
authored
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
1 parent b00a73a commit d5e91f6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/wasi-libc

strip_symbols.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
22
set -e
33

44
DIRECTORY=${1:-/opt/wasi-sdk/bin}
5+
if [[ "$OSTYPE" == "darwin"* ]]; then
6+
# macos find doesnt support -executable so we fall back on having a permission
7+
# bit to execute:
8+
EXECUTABLES=$(find ${DIRECTORY} -type f -perm +111)
9+
else
510
EXECUTABLES=$(find ${DIRECTORY} -type f -executable)
11+
fi
612
for e in ${EXECUTABLES}; do
713
echo "Stripping symbols: ${e}"
814
strip ${e} || echo "Failed to strip symbols for ${e}; continuing on."

0 commit comments

Comments
 (0)