1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
denoland-deno/tools/prebuilt.py
Ryan Dahl 89096c9210 Use prebuilt V8 library by default.
This still retains the ability to build V8 from scratch, with an number
of configurations. The prebuilt binaries were created using

DENO_BUILD_MODE=release ./tools/build.py v8
2018-11-27 15:47:31 -08:00

31 lines
700 B
Python

import sys
from util import run
from third_party import tp, google_env
def download_v8_prebuilt():
if sys.platform == 'win32':
sha1_file = "prebuilt/win/v8.lib.sha1"
elif sys.platform.startswith('linux'):
sha1_file = "prebuilt/linux64/libv8.a.sha1"
elif sys.platform == 'darwin':
sha1_file = "prebuilt/mac/libv8.a.sha1"
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())