зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #18892 - CEF: use `cargo rustc -C link-args=…` instead of `#[link_args="…"]` (from servo:link-args); r=nox
The latter is an unstable feature that might be changed or removed. Source-Repo: https://github.com/servo/servo Source-Revision: a5100e3c783f140c368da89e25e50581dce91bfd --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 1f54e2e26a5886ae1b029a72ee98f9e0a1f81d9e
This commit is contained in:
Родитель
c8ccb9da6c
Коммит
f4498dbbb7
|
@ -4,7 +4,6 @@
|
|||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(link_args)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
@ -27,10 +26,6 @@ extern crate webrender_api;
|
|||
|
||||
extern crate libc;
|
||||
|
||||
#[cfg(target_os="macos")]
|
||||
#[link_args="-Xlinker -undefined -Xlinker dynamic_lookup"]
|
||||
extern { }
|
||||
|
||||
#[cfg(target_os="macos")]
|
||||
extern crate cocoa;
|
||||
#[cfg(target_os="macos")]
|
||||
|
|
|
@ -24,7 +24,7 @@ from mach.decorators import (
|
|||
Command,
|
||||
)
|
||||
|
||||
from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX
|
||||
from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX, is_macosx
|
||||
from servo.util import host_triple
|
||||
|
||||
|
||||
|
@ -401,8 +401,14 @@ class MachCommands(CommandBase):
|
|||
if with_debug_assertions:
|
||||
env["RUSTFLAGS"] = "-C debug_assertions"
|
||||
|
||||
if is_macosx():
|
||||
# Unlike RUSTFLAGS, these are only passed in the final rustc invocation
|
||||
# so that `./mach build` followed by `./mach build-cef` both build
|
||||
# common dependencies with the same flags.
|
||||
opts += ["--", "-C", "link-args=-Xlinker -undefined -Xlinker dynamic_lookup"]
|
||||
|
||||
with cd(path.join("ports", "cef")):
|
||||
ret = call(["cargo", "build"] + opts,
|
||||
ret = call(["cargo", "rustc"] + opts,
|
||||
env=env,
|
||||
verbose=verbose)
|
||||
elapsed = time() - build_start
|
||||
|
|
Загрузка…
Ссылка в новой задаче