Merge changes I4c3744e0,I91d8de92 am: b1d8a2de5f am: ad73674f9d
Original change: https://android-review.googlesource.com/c/platform/development/+/2129337 Change-Id: Ia20151ca52b1933a342e8baea9c0a66f4dc02083 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1160,12 +1160,6 @@ class Runner(object):
|
|||||||
sys.exit('ERROR: cannot find cargo in ' + self.args.cargo_bin)
|
sys.exit('ERROR: cannot find cargo in ' + self.args.cargo_bin)
|
||||||
print('INFO: using cargo in ' + self.args.cargo_bin)
|
print('INFO: using cargo in ' + self.args.cargo_bin)
|
||||||
return
|
return
|
||||||
elif os.environ.get('ANDROID_BUILD_ENVIRONMENT_CONFIG', '') == 'googler':
|
|
||||||
sys.exit('ERROR: Not executed within the sandbox. Please see '
|
|
||||||
'go/cargo2android-sandbox for more information.')
|
|
||||||
else:
|
|
||||||
sys.exit('ERROR: the prebuilt cargo is not usable; please '
|
|
||||||
'use the --cargo_bin flag.')
|
|
||||||
# We have only tested this on Linux.
|
# We have only tested this on Linux.
|
||||||
if platform.system() != 'Linux':
|
if platform.system() != 'Linux':
|
||||||
sys.exit('ERROR: this script has only been tested on Linux with cargo.')
|
sys.exit('ERROR: this script has only been tested on Linux with cargo.')
|
||||||
@@ -1205,10 +1199,10 @@ class Runner(object):
|
|||||||
result = version_pat.match(dir_name)
|
result = version_pat.match(dir_name)
|
||||||
if not result:
|
if not result:
|
||||||
continue
|
continue
|
||||||
version = (result.group(1), result.group(2), result.group(3))
|
version = (int(result.group(1)), int(result.group(2)), int(result.group(3)))
|
||||||
if version > rust_version:
|
if version > rust_version:
|
||||||
rust_version = version
|
rust_version = version
|
||||||
return '.'.join(rust_version)
|
return '.'.join(map(str, rust_version))
|
||||||
|
|
||||||
def find_out_files(self):
|
def find_out_files(self):
|
||||||
# list1 has build.rs output for normal crates
|
# list1 has build.rs output for normal crates
|
||||||
|
|||||||
Reference in New Issue
Block a user