Skip to content

Commit

Permalink
Set platform for amd64 openssl build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jul 3, 2024
1 parent 918e904 commit d638dfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions substrate/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ if [[ "${target_os}" = "darwin" ]]; then
else # By default we target x86_64
info " ** macOS build target architecture: x86_64"

MACOS_TARGET="x86_64"

if [ -n "${macos_sdk_file}" ]; then
info " ** Custom SDK defined (%s), downloading..." "${macos_sdk_file}"
pushd "${cache_dir}" > /dev/null || exit
Expand Down Expand Up @@ -683,6 +685,8 @@ if needs_build "${tracker_file}" "openssl"; then
# https://github.com/openssl/openssl/issues/8823
if [ "${MACOS_TARGET}" = "arm64" ]; then
./Configure zlib no-asm no-tests shared --prefix="${embed_dir}" darwin64-arm64-cc || exit
elif [ "${MACOS_TARGET}" = "x86_64" ]; then
./Configure zlib no-asm no-tests shared --prefix="${embed_dir}" darwin64-x86_64-cc || exit
elif [ "${target_os}" = "linux" ] && [ "${target_arch}" = "386" ]; then
cat <<'EOF' > ./Configurations/99-vagrant.conf
(
Expand Down

0 comments on commit d638dfa

Please sign in to comment.