39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- build/moz.configure/rust.configure 2020-06-06 10:05:25.819337924 +0200
|
|
+++ build/moz.configure/rust.configure 2020-06-06 10:07:11.346031015 +0200
|
|
@@ -79,10 +79,6 @@
|
|
|
|
return unwrap
|
|
|
|
-rustc = unwrap_rustup(rustc, 'rustc')
|
|
-cargo = unwrap_rustup(cargo, 'cargo')
|
|
-
|
|
-
|
|
set_config('CARGO', cargo)
|
|
set_config('RUSTC', rustc)
|
|
|
|
@@ -366,25 +362,6 @@
|
|
os.write(in_fd, source)
|
|
os.close(in_fd)
|
|
|
|
- cmd = [
|
|
- rustc,
|
|
- '--crate-type', 'staticlib',
|
|
- target_arg,
|
|
- '-o', out_path,
|
|
- in_path,
|
|
- ]
|
|
-
|
|
- def failed():
|
|
- die(dedent('''\
|
|
- Cannot compile for {} with {}
|
|
- The target may be unsupported, or you may not have
|
|
- a rust std library for that target installed. Try:
|
|
-
|
|
- rustup target add {}
|
|
- '''.format(host_or_target.alias, rustc, rustc_target)))
|
|
- check_cmd_output(*cmd, onerror=failed)
|
|
- if not os.path.exists(out_path) or os.path.getsize(out_path) == 0:
|
|
- failed()
|
|
finally:
|
|
os.remove(in_path)
|
|
os.remove(out_path)
|