1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tools/prebuilt.py
Ryan Dahl cc126528f0
Add prebuilt/win/v8_debug.lib (#1249)
The windows debug build was broken due to libc link errors.
2018-11-29 23:25:59 -08:00

35 lines
887 B
Python

import sys
from util import run
from third_party import tp, google_env
def download_v8_prebuilt():
if sys.platform == 'win32':
download_prebuilt("prebuilt/win/v8.lib.sha1")
# TODO Ideally we wouldn't have to download both builds of V8.
download_prebuilt("prebuilt/win/v8_debug.lib.sha1")
elif sys.platform.startswith('linux'):
download_prebuilt("prebuilt/linux64/libv8.a.sha1")
elif sys.platform == 'darwin':
download_prebuilt("prebuilt/mac/libv8.a.sha1")
def download_prebuilt(sha1_file):
run([
"python",
tp('depot_tools/download_from_google_storage.py'),
'--platform=' + sys.platform,
'--no_auth',
'--bucket=denoland',
'--sha1_file',
sha1_file,
],
env=google_env())
def load():
download_v8_prebuilt()
if __name__ == '__main__':
sys.exit(load())