Skip to content

Commit

Permalink
DEBUG2
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jul 31, 2024
1 parent 6fb34c9 commit 770ad0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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
11 changes: 7 additions & 4 deletions scripts/build/collect_symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

set -ex
set -o pipefail
set -x
#set -ex
#set -o pipefail

function find_rust_platform() {
rustc -Vv | grep -E "^host" | perl -p -e 's/^host:\s*(\S*)/\1/'
Expand Down Expand Up @@ -93,8 +94,10 @@ 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}"
dumpbin //EXPORTS //SYMBOLS "${LIBCRYPTO_PATH}" | grep External | sed -e 's/.*External\s*|\s*\(.*\)$/\1/' | sort | uniq | grep -v -E "^bignum_" | grep -v "curve25519_x25519" | grep -v "edwards25519_" >"${SYMBOLS_FILE}"
echo "dumpbin pipes: ${PIPESTATUS[@]}"
exit 1
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 770ad0d

Please sign in to comment.