diff --git a/strip_symbols.sh b/strip_symbols.sh index c161f60..effd300 100755 --- a/strip_symbols.sh +++ b/strip_symbols.sh @@ -2,9 +2,9 @@ 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: +if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then +# macos and freebsd find do not 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)