Skip to content

Commit

Permalink
Add a warning when trying to install linux-arm64 binaries (#1249)
Browse files Browse the repository at this point in the history
See #547
  • Loading branch information
sbc100 authored Jun 27, 2023
1 parent 88ee963 commit 098a3ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion emsdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ def find_latest_hash():
def resolve_sdk_aliases(name, verbose=False):
releases_info = load_releases_info()
if name == 'latest' and LINUX and ARCH == 'arm64':
print("warning: 'latest' on arm64-linux may be slightly behind other architectures")
errlog("WARNING: 'latest' on arm64-linux may be slightly behind other architectures")
name = 'latest-arm64-linux'
while name in releases_info['aliases']:
if verbose:
Expand Down Expand Up @@ -3046,6 +3046,10 @@ def print_tools(t):
errlog("Missing parameter. Type 'emsdk install <tool name>' to install a tool or an SDK. Type 'emsdk list' to obtain a list of available tools. Type 'emsdk install latest' to automatically install the newest version of the SDK.")
return 1

if LINUX and ARCH == 'arm64' and args != ['latest']:
errlog('WARNING: arm64-linux binaries are not availble for all releases.')
errlog('See https://github.com/emscripten-core/emsdk/issues/547')

for t in args:
tool = find_tool(t)
if tool is None:
Expand Down

0 comments on commit 098a3ff

Please sign in to comment.