Skip to content

Commit 857f418

Browse files
authored
Merge pull request #164 from jgravelle-google/waterfall_lkgr
Add upstream waterfall tools and sdk
2 parents 97564e0 + e7a7828 commit 857f418

File tree

4 files changed

+210
-1
lines changed

4 files changed

+210
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ llvm-nightlies-32bit.txt
2424
llvm-nightlies-64bit.txt
2525
llvm-tags-32bit.txt
2626
llvm-tags-64bit.txt
27+
upstream
28+
!upstream/lkgr.json

emsdk

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ class Tool:
13471347
success = build_llvm_tool(self)
13481348
elif hasattr(self, 'git_branch'):
13491349
success = git_clone_checkout_and_pull(url, self.installation_path(), self.git_branch)
1350-
elif url.endswith('zip') or url.endswith('.tar') or url.endswith('.gz') or url.endswith('.xz'):
1350+
elif url.endswith('zip') or url.endswith('.tar') or url.endswith('.gz') or url.endswith('.xz') or url.endswith('.tbz2'):
13511351
download_even_if_exists = (self.id == 'vs-tool')
13521352
success = download_and_unzip(url, self.installation_path(), download_even_if_exists, filename_prefix=self.zipfile_prefix if hasattr(self, 'zipfile_prefix') else '')
13531353
else:
@@ -1577,6 +1577,7 @@ def fetch_emscripten_tags():
15771577
print('Fetching all precompiled tagged releases..')
15781578
download_file('https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/' + os_name_for_llvm_location() + '_32bit/index.txt', 'llvm-tags-32bit.txt', download_even_if_exists=True)
15791579
download_file('https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/' + os_name_for_llvm_location() + '_64bit/index.txt', 'llvm-tags-64bit.txt', download_even_if_exists=True)
1580+
download_waterfall_lkgr()
15801581

15811582
if not git:
15821583
print('Update complete, however skipped fetching the Emscripten tags, since git was not found.')
@@ -1659,6 +1660,18 @@ def load_llvm_precompiled_tags_32bit():
16591660
def load_llvm_precompiled_tags_64bit():
16601661
return load_file_index_list('llvm-tags-64bit.txt')
16611662

1663+
def download_waterfall_lkgr():
1664+
lkgr_url = 'https://storage.googleapis.com/wasm-llvm/builds/linux/lkgr.json'
1665+
download_file(lkgr_url, 'upstream', download_even_if_exists=True)
1666+
1667+
def load_waterfall_lkgr():
1668+
try:
1669+
data = json.loads(open(os.path.join('upstream', 'lkgr.json'), 'r').read())
1670+
lkgr = data['build']
1671+
return [lkgr]
1672+
except:
1673+
return []
1674+
16621675
def is_string(s):
16631676
if (sys.version_info[0] >= 3): return isinstance(s, str)
16641677
return isinstance(s, basestring)
@@ -1680,6 +1693,7 @@ def load_sdk_manifest():
16801693
llvm_32bit_nightlies = list(reversed(load_llvm_32bit_nightlies()))
16811694
llvm_64bit_nightlies = list(reversed(load_llvm_64bit_nightlies()))
16821695
emscripten_nightlies = list(reversed(load_emscripten_nightlies()))
1696+
waterfall_lkgr = load_waterfall_lkgr()
16831697

16841698
def dependencies_exist(sdk):
16851699
for tool_name in sdk.uses:
@@ -1750,6 +1764,7 @@ def load_sdk_manifest():
17501764
elif '%nightly-llvm-64bit%' in t.version: expand_category_param('%nightly-llvm-64bit%', llvm_64bit_nightlies, t, is_sdk=False)
17511765
elif '%nightly-llvm-32bit%' in t.version: expand_category_param('%nightly-llvm-32bit%', llvm_32bit_nightlies, t, is_sdk=False)
17521766
elif '%nightly-emscripten%' in t.version: expand_category_param('%nightly-emscripten%', emscripten_nightlies, t, is_sdk=False)
1767+
elif '%waterfall-lkgr%' in t.version: expand_category_param('%waterfall-lkgr%', waterfall_lkgr, t, is_sdk=False)
17531768
else:
17541769
add_tool(t)
17551770

@@ -1767,6 +1782,7 @@ def load_sdk_manifest():
17671782
elif '%nightly-llvm-64bit%' in sdk.version: expand_category_param('%nightly-llvm-64bit%', llvm_64bit_nightlies, sdk, is_sdk=True)
17681783
elif '%nightly-llvm-32bit%' in sdk.version: expand_category_param('%nightly-llvm-32bit%', llvm_32bit_nightlies, sdk, is_sdk=True)
17691784
elif '%nightly-emscripten%' in sdk.version: expand_category_param('%nightly-emscripten%', emscripten_nightlies, sdk, is_sdk=True)
1785+
elif '%waterfall-lkgr%' in sdk.version: expand_category_param('%waterfall-lkgr%', waterfall_lkgr, sdk, is_sdk=True)
17701786
else:
17711787
add_sdk(sdk)
17721788

emsdk_manifest.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,34 @@
190190
"activated_env": "LLVM_ROOT=%installation_dir%/%fastcomp_build_bin_dir%",
191191
"cmake_build_type": "Release"
192192
},
193+
{
194+
"id": "clang",
195+
"version": "upstream-%waterfall-lkgr%",
196+
"bitness": 64,
197+
"linux_url": "https://storage.googleapis.com/wasm-llvm/builds/linux/%waterfall-lkgr%/wasm-binaries.tbz2",
198+
"install_path": "upstream/%waterfall-lkgr%",
199+
"activated_path": "%installation_dir%",
200+
"activated_cfg": "LLVM_ROOT='%installation_dir%/bin'"
201+
},
202+
{
203+
"id": "emscripten",
204+
"version": "upstream-%waterfall-lkgr%",
205+
"bitness": 64,
206+
"linux_url": "https://storage.googleapis.com/wasm-llvm/builds/linux/%waterfall-lkgr%/wasm-binaries.tbz2",
207+
"install_path": "upstream/%waterfall-lkgr%",
208+
"activated_path": "%installation_dir%",
209+
"activated_cfg": "EMSCRIPTEN_ROOT='%installation_dir%/emscripten'"
210+
},
211+
{
212+
"id": "binaryen",
213+
"version": "upstream-%waterfall-lkgr%",
214+
"bitness": 64,
215+
"linux_url": "https://storage.googleapis.com/wasm-llvm/builds/linux/%waterfall-lkgr%/wasm-binaries.tbz2",
216+
"install_path": "upstream/%waterfall-lkgr%",
217+
"activated_path": "%installation_dir%",
218+
"activated_cfg": "BINARYEN_ROOT='%installation_dir%'",
219+
"activated_env": "BINARYEN_ROOT=%installation_dir%"
220+
},
193221
{
194222
"id": "clang",
195223
"version": "e1.13.0",
@@ -1534,6 +1562,12 @@
15341562
"uses": ["clang-e1.37.1-64bit", "node-4.1.1-64bit", "python-2.7.13.1-64bit", "emscripten-1.37.1"],
15351563
"os": "win"
15361564
},
1565+
{
1566+
"version": "upstream-%waterfall-lkgr%",
1567+
"bitness": 64,
1568+
"uses": ["clang-upstream-%waterfall-lkgr%-64bit", "emscripten-upstream-%waterfall-lkgr%-64bit", "binaryen-upstream-%waterfall-lkgr%-64bit"],
1569+
"os": "linux"
1570+
},
15371571
{
15381572
"version": "%precompiled_tag32%",
15391573
"bitness": 32,

upstream/lkgr.json

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"repositories": {
3+
"libcxxabi": {
4+
"remote": "https://llvm.googlesource.com/libcxxabi.git",
5+
"subject": "[CMake] Set per-runtime library directory suffix in runtimes build",
6+
"hash": "5b1f0aa6f041edaad988a0359c5beb8cd5f1ebfb",
7+
"name": "Petr Hosek",
8+
"email": "[email protected]"
9+
},
10+
"binaryen": {
11+
"remote": "https://chromium.googlesource.com/external/github.com/WebAssembly/binaryen.git",
12+
"subject": "Refactor stack writing code into a new StackWriter class (#1620)",
13+
"hash": "e601522b1e15e5a2a96578244faca1648021fb2d",
14+
"name": "Alon Zakai",
15+
"email": "[email protected]"
16+
},
17+
"gnuwin32": null,
18+
"lld": {
19+
"remote": "https://llvm.googlesource.com/lld.git",
20+
"subject": "[WebAssemlby] Set IsUsedInRegularObj correctly for undefined data symbols",
21+
"hash": "5934900bdcbc82eb2c582b68909447f8de89a5df",
22+
"name": "Sam Clegg",
23+
"email": "[email protected]"
24+
},
25+
"cr-buildtools": {
26+
"remote": "https://chromium.googlesource.com/chromium/src/build.git",
27+
"subject": "Finish removing refrences to exe_and_shlib_deps",
28+
"hash": "7315579e388589b62236ad933f09afd1e838d234",
29+
"name": "Tom Anderson",
30+
"email": "[email protected]"
31+
},
32+
"compiler-rt": {
33+
"remote": "https://llvm.googlesource.com/compiler-rt.git",
34+
"subject": "[builtins] Implement the __chkstk function for ARM for MinGW",
35+
"hash": "a22026054ba1a9befadef306c3f56481b4397ab3",
36+
"name": "Martin Storsjo",
37+
"email": "[email protected]"
38+
},
39+
"gcc": {
40+
"remote": "https://chromium.googlesource.com/chromiumos/third_party/gcc.git",
41+
"subject": "[GCC] Fix compile time error introduced by PR64111 (GCC FSF).",
42+
"hash": "b6125c702850488ac3bfb1079ae5c9db89989406",
43+
"name": "Caroline Tice",
44+
"email": "[email protected]"
45+
},
46+
"emscripten": {
47+
"remote": "https://chromium.googlesource.com/external/github.com/kripken/emscripten.git",
48+
"subject": "Add 'ENV' to the list of runtime elements that may be exported. (#6855)",
49+
"hash": "addf0ae7697f01a1bd36889f0b7a6c30e5cf642f",
50+
"name": "Ian Henderson",
51+
"email": "[email protected]"
52+
},
53+
"libcxx": {
54+
"remote": "https://llvm.googlesource.com/libcxx.git",
55+
"subject": "Address \"always inline function is not always inlinable\" warning with GCC.",
56+
"hash": "ffbb91bb640b1b0425a91aa70e2a6a2e0f7244e0",
57+
"name": "Eric Fiselier",
58+
"email": "[email protected]"
59+
},
60+
"nodejs": null,
61+
"host-toolchain": {
62+
"remote": "/b/build/slave/cache_dir/chromium.googlesource.com-external-github.com-webassembly-waterfall",
63+
"subject": "Pin chromium clang to a previous revision (#386)",
64+
"hash": "555c690d4cb7cefba750385eeb71cce050bd1e82",
65+
"name": "Sam Clegg",
66+
"email": "[email protected]"
67+
},
68+
"fastcomp": {
69+
"remote": "https://chromium.googlesource.com/external/github.com/kripken/emscripten-fastcomp.git",
70+
"subject": "1.38.8",
71+
"hash": "6c4569077d771cf318ff5089a94d82ccef56a038",
72+
"name": "Alon Zakai (kripken)",
73+
"email": "[email protected]"
74+
},
75+
"spec": {
76+
"remote": "https://chromium.googlesource.com/external/github.com/WebAssembly/spec.git",
77+
"subject": "[test] Add test to cover one checkpoint in Todo.md (#834)",
78+
"hash": "c8338e9b4a60edb431edba51a4e1a1617060c2e9",
79+
"name": "Wanming Lin",
80+
"email": "[email protected]"
81+
},
82+
"ocamlbuild": {
83+
"remote": "https://github.com/ocaml/ocamlbuild.git",
84+
"subject": "prepare for 0.11.0 release",
85+
"hash": "340c02089003dffd10b654a7eb203ffd01c37799",
86+
"name": "Gabriel Scherer",
87+
"email": "[email protected]"
88+
},
89+
"llvm": {
90+
"remote": "https://llvm.googlesource.com/llvm.git",
91+
"subject": "[LangRef] Clarify which fast-math flags affect fcmp.",
92+
"hash": "1ea502b3c158159aa2d7827acbd81c7930165a13",
93+
"name": "Eli Friedman",
94+
"email": "[email protected]"
95+
},
96+
"musl": {
97+
"remote": "https://github.com/jfbastien/musl.git",
98+
"subject": "Merge pull request #48 from jfbastien/fix_signatures",
99+
"hash": "0ed10f0b97192e9798fbb23dcd284cb5fe4df47a",
100+
"name": "JF Bastien",
101+
"email": "[email protected]"
102+
},
103+
"clang": {
104+
"remote": "https://llvm.googlesource.com/clang.git",
105+
"subject": "Remove unnecessary trailing ; in macro intrinsic definition.",
106+
"hash": "726843da082dc448eec5048f24bea1bfebbc969c",
107+
"name": "Eric Christopher",
108+
"email": "[email protected]"
109+
},
110+
"waterfall": {
111+
"remote": "/b/build/slave/cache_dir/chromium.googlesource.com-external-github.com-webassembly-waterfall",
112+
"subject": "Pin chromium clang to a previous revision (#386)",
113+
"hash": "555c690d4cb7cefba750385eeb71cce050bd1e82",
114+
"name": "Sam Clegg",
115+
"email": "[email protected]"
116+
},
117+
"v8": {
118+
"remote": "https://chromium.googlesource.com/v8/v8.git",
119+
"subject": "[Intl] Use correct fallback values for options in Locale constructor",
120+
"hash": "b7e108d6016bf6b7de3a34e6d61cb522f5193460",
121+
"name": "Frank Tang",
122+
"email": "[email protected]"
123+
},
124+
"cmake": null,
125+
"java": null,
126+
"llvm-test-suite": {
127+
"remote": "https://llvm.googlesource.com/test-suite.git",
128+
"subject": "Fixed test to conform to FileCceck change in r336830.",
129+
"hash": "121047f033754e642217dd45b7d49d1947cff3ab",
130+
"name": "Sunil Srivastava",
131+
"email": "[email protected]"
132+
},
133+
"ocaml": {
134+
"remote": "https://github.com/ocaml/ocaml.git",
135+
"subject": "change VERSION for 4.05.0",
136+
"hash": "36750d1301ec197e52a1e3d77f20b33dfdf14803",
137+
"name": "Damien Doligez",
138+
"email": "[email protected]"
139+
},
140+
"fastcomp-clang": {
141+
"remote": "https://chromium.googlesource.com/external/github.com/kripken/emscripten-fastcomp-clang.git",
142+
"subject": "1.38.8",
143+
"hash": "7c43b8c67d35a870986fb92b5a04e615477ab9cf",
144+
"name": "Alon Zakai (kripken)",
145+
"email": "[email protected]"
146+
},
147+
"wabt": {
148+
"remote": "https://chromium.googlesource.com/external/github.com/WebAssembly/wabt.git",
149+
"subject": "[wasm2c] Fix bad realloc in wasm-rt-impl (#869)",
150+
"hash": "e5b3830f4c992c5a0b407dae3e9c8c4ee9a626b2",
151+
"name": "Ben Smith",
152+
"email": "[email protected]"
153+
}
154+
},
155+
"build": "33957",
156+
"scheduler": "llvm"
157+
}

0 commit comments

Comments
 (0)