mirror of
https://github.com/servo/servo.git
synced 2025-07-27 01:00:41 +01:00
Move all cargo build environment variables into CommandBase
This commit is contained in:
parent
40be84df26
commit
cce565466d
2 changed files with 13 additions and 13 deletions
|
@ -204,12 +204,7 @@ class MachCommands(CommandBase):
|
|||
opts += ["--features", "%s" % ' '.join(features)]
|
||||
|
||||
build_start = time()
|
||||
env = self.build_env()
|
||||
|
||||
# Ensure Rust uses hard floats and SIMD on ARM devices
|
||||
if target:
|
||||
if target.startswith('arm') or target.startswith('aarch64'):
|
||||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C target-feature=+neon"
|
||||
env = self.build_env(target=target)
|
||||
|
||||
if android:
|
||||
# Build OpenSSL for android
|
||||
|
@ -225,7 +220,7 @@ class MachCommands(CommandBase):
|
|||
with cd(openssl_dir):
|
||||
status = call(
|
||||
make_cmd + ["-f", "openssl.makefile"],
|
||||
env=self.build_env(),
|
||||
env=env,
|
||||
verbose=verbose)
|
||||
if status:
|
||||
return status
|
||||
|
@ -234,11 +229,6 @@ class MachCommands(CommandBase):
|
|||
env['OPENSSL_INCLUDE_DIR'] = path.join(openssl_dir, "include")
|
||||
env['OPENSSL_STATIC'] = 'TRUE'
|
||||
|
||||
if not (self.config["build"]["ccache"] == ""):
|
||||
env['CCACHE'] = self.config["build"]["ccache"]
|
||||
|
||||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -W unused-extern-crates"
|
||||
|
||||
status = call(
|
||||
["cargo", "build"] + opts,
|
||||
env=env, cwd=self.servo_crate(), verbose=verbose)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue