Skip to content

Commit

Permalink
Allow pipefail when filtering collected msvc symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jul 31, 2024
1 parent 6fb34c9 commit 101f06c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sys-bindings-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: github.repository == 'aws/aws-lc-rs'
runs-on: windows-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
target:
- 'aarch64-pc-windows-msvc'
Expand Down
7 changes: 5 additions & 2 deletions scripts/build/collect_symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ if [[ "${PLATFORM}" = *-msvc ]]; then
VS_INSTALL_PATH="$("$(echo "${PFx86//\\/\/}//Microsoft Visual Studio/Installer/vswhere.exe")" | grep 'resolvedInstallationPath:' | sed -e 's/[^:]*: \(.*\)$/\1/')"

DUMPBIN="$(ls -1 "${VS_INSTALL_PATH//\\/\/}"/VC/Tools/MSVC/*/bin/Hostx64/${MSVC_ARCH}/dumpbin.exe | tail -n 1)"
PATH="$(dirname "${DUMPBIN}")":"${PATH}"
dumpbin //EXPORTS //SYMBOLS ${LIBCRYPTO_PATH} | grep External | grep SECT1 | sed -e 's/.*External\s*|\s*\(.*\)$/\1/'| egrep '^\w' | sort | uniq | filter_symbols >"${SYMBOLS_FILE}"
PATH="$(dirname "${DUMPBIN/C:/\/c}")":"${PATH}"
set +o pipefail
dumpbin //EXPORTS //SYMBOLS "${LIBCRYPTO_PATH}" | grep External | grep SECT1 | sed -e 's/.*External\s*|\s*\(.*\)$/\1/'| grep -E '^\w' | sort | uniq | filter_symbols >"${SYMBOLS_FILE}"
echo "dumpbin pipes: ${PIPESTATUS[@]}"
set -o pipefail
elif [[ "${LIBCRYPTO_PATH}" = *.dylib ]]; then
nm --extern-only --defined-only -j "${LIBCRYPTO_PATH}" | grep -v "${REPO_ROOT}" | sort | uniq | filter_macho_symbols | filter_nm_symbols | filter_symbols >"${SYMBOLS_FILE}"
elif [[ "${LIBCRYPTO_PATH}" = *.so || "${LIBCRYPTO_PATH}" = *.lib ]]; then
Expand Down

0 comments on commit 101f06c

Please sign in to comment.