mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Use build-std instead of xargo.
This commit is contained in:
parent
15f3445a34
commit
9535f228f3
3 changed files with 2 additions and 6 deletions
|
@ -273,7 +273,6 @@ class MachCommands(CommandBase):
|
||||||
if uwp:
|
if uwp:
|
||||||
# Ensure libstd is ready for the new UWP target.
|
# Ensure libstd is ready for the new UWP target.
|
||||||
check_call(["rustup", "component", "add", "rust-src"])
|
check_call(["rustup", "component", "add", "rust-src"])
|
||||||
env['RUST_SYSROOT'] = path.expanduser('~\\.xargo')
|
|
||||||
|
|
||||||
# Don't try and build a desktop port.
|
# Don't try and build a desktop port.
|
||||||
libsimpleservo = True
|
libsimpleservo = True
|
||||||
|
|
|
@ -608,7 +608,6 @@ install them, let us know by filing a bug!")
|
||||||
extra_path += [path.join(self.msvc_package_dir("llvm"), "bin")]
|
extra_path += [path.join(self.msvc_package_dir("llvm"), "bin")]
|
||||||
extra_path += [path.join(self.msvc_package_dir("ninja"), "bin")]
|
extra_path += [path.join(self.msvc_package_dir("ninja"), "bin")]
|
||||||
extra_path += [self.msvc_package_dir("nuget")]
|
extra_path += [self.msvc_package_dir("nuget")]
|
||||||
extra_path += [path.join(self.msvc_package_dir("xargo"))]
|
|
||||||
|
|
||||||
arch = (target or host_triple()).split('-')[0]
|
arch = (target or host_triple()).split('-')[0]
|
||||||
vcpkg_arch = {
|
vcpkg_arch = {
|
||||||
|
@ -932,9 +931,8 @@ install them, let us know by filing a bug!")
|
||||||
args += ["--features", " ".join(features)]
|
args += ["--features", " ".join(features)]
|
||||||
|
|
||||||
if target and 'uwp' in target:
|
if target and 'uwp' in target:
|
||||||
return call(["xargo", command] + args + cargo_args, env=env, verbose=verbose)
|
cargo_args += ["-Z", "build-std"]
|
||||||
else:
|
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
||||||
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
|
||||||
|
|
||||||
def android_support_dir(self):
|
def android_support_dir(self):
|
||||||
return path.join(self.context.topdir, "support", "android")
|
return path.join(self.context.topdir, "support", "android")
|
||||||
|
|
|
@ -11,5 +11,4 @@ WINDOWS_MSVC = {
|
||||||
"openssl": "111.3.0+1.1.1c-vs2017-2019-09-18",
|
"openssl": "111.3.0+1.1.1c-vs2017-2019-09-18",
|
||||||
"gstreamer-uwp": "1.16.0.5",
|
"gstreamer-uwp": "1.16.0.5",
|
||||||
"openxr-loader-uwp": "1.0",
|
"openxr-loader-uwp": "1.0",
|
||||||
"xargo": "v0.3.22",
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue