Skip to content

Commit c6bbf6d

Browse files
committed
third_party/setup.py: fix wabt platform detection
wabt changed its release asset naming convention in 1.0.39. The old names (ubuntu, macos, windows) no longer match the current names (linux-x64, linux-arm64, macos-arm64, windows-x64), causing setup.py to silently fail with an empty download URL.
1 parent 9d2bf83 commit c6bbf6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

third_party/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ def v8_main():
174174

175175
def wabt_determine_platform():
176176
if sys.platform.startswith('linux'):
177-
return 'ubuntu'
177+
return 'linux'
178178
if sys.platform == 'darwin':
179179
return 'macos'
180180
if sys.platform == 'win32':
181181
return 'windows'
182-
print('Cannot determine platform, assuming \'ubuntu\'')
183-
return 'ubuntu'
182+
print('Cannot determine platform, assuming \'linux\'')
183+
return 'linux'
184184

185185

186186
def wabt_determine_release(platform):

0 commit comments

Comments
 (0)