File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4
4
# found in the LICENSE file.
5
5
6
6
import argparse
7
+ import lzma
7
8
import os
8
9
import platform
9
10
import shutil
21
22
22
23
PACKAGE_VERSION = GetLatestRevision ()
23
24
BUILDLOG_NAME = f'rust-buildlog-{ PACKAGE_VERSION } .txt'
24
- RUST_TOOLCHAIN_PACKAGE_NAME = f'rust-toolchain-{ PACKAGE_VERSION } .tgz '
25
+ RUST_TOOLCHAIN_PACKAGE_NAME = f'rust-toolchain-{ PACKAGE_VERSION } .tar.xz '
25
26
26
27
27
28
def BuildCrubit (build_mac_arm ):
@@ -90,9 +91,10 @@ def main():
90
91
91
92
BuildCrubit (args .build_mac_arm )
92
93
93
- with tarfile .open (
94
- os .path .join (THIRD_PARTY_DIR , RUST_TOOLCHAIN_PACKAGE_NAME ),
95
- 'w:gz' ) as tar :
94
+ with tarfile .open (os .path .join (THIRD_PARTY_DIR ,
95
+ RUST_TOOLCHAIN_PACKAGE_NAME ),
96
+ 'w:xz' ,
97
+ preset = 9 | lzma .PRESET_EXTREME ) as tar :
96
98
tar .add (RUST_TOOLCHAIN_OUT_DIR , arcname = 'rust-toolchain' )
97
99
98
100
os .chdir (THIRD_PARTY_DIR )
Original file line number Diff line number Diff line change 33
33
# These fields are written by //tools/clang/scripts/upload_revision.py, and
34
34
# should not be changed manually.
35
35
RUST_REVISION = '17c11672167827b0dd92c88ef69f24346d1286dd'
36
- RUST_SUB_REVISION = 1
36
+ RUST_SUB_REVISION = 2
37
37
38
38
# Trunk on 2022-10-15.
39
39
#
65
65
# TODO(lukasza): Include CRUBIT_REVISION and CRUBIT_SUB_REVISION once we
66
66
# include Crubit binaries in the generated package. See also a TODO comment
67
67
# in BuildCrubit in package_rust.py.
68
- FALLBACK_REVISION = '17c11672167827b0dd92c88ef69f24346d1286dd-1 -llvmorg-17-init-8029-g27f27d15-1 '
68
+ FALLBACK_REVISION = '17c11672167827b0dd92c88ef69f24346d1286dd-2 -llvmorg-17-init-8029-g27f27d15-4 '
69
69
70
70
# Hash of src/stage0.json, which itself contains the stage0 toolchain hashes.
71
71
# We trust the Rust build system checks, but to ensure it is not tampered with
@@ -170,11 +170,11 @@ def main():
170
170
platform_prefix = GetPlatformUrlPrefix (GetDefaultHostOs ())
171
171
172
172
version = GetLatestRevision ()
173
- url = f'{ platform_prefix } rust-toolchain-{ version } .tgz '
173
+ url = f'{ platform_prefix } rust-toolchain-{ version } .tar.xz '
174
174
if not CheckUrl (url ):
175
175
print ("Latest Rust toolchain not found. Using fallback revision." )
176
176
version = FALLBACK_REVISION
177
- url = f'{ platform_prefix } rust-toolchain-{ version } .tgz '
177
+ url = f'{ platform_prefix } rust-toolchain-{ version } .tar.xz '
178
178
if not CheckUrl (url ):
179
179
print ('error: Could not find Rust toolchain package' )
180
180
return 1
You can’t perform that action at this time.
0 commit comments