mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Fix cross-compiling servoshell on Mac hosts (#32504)
`#[cfg(target_os = "xxx")]` when used in build scripts checks which platform the **build script** is compiled for - i.e. the Host OS. Since ware interested in the actual target os, we need to read `CARGO_CFG_TARGET_OS`, a value that is set at **runtime of the build script**. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
3370146490
commit
19067366df
2 changed files with 19 additions and 15 deletions
|
@ -20,13 +20,11 @@ bench = false
|
|||
|
||||
[build-dependencies]
|
||||
vergen = { version = "8.3.1", features = ["git", "git2"] }
|
||||
cc = "1.0"
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
winres = "0.1"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.build-dependencies]
|
||||
cc = "1.0"
|
||||
|
||||
[package.metadata.winres]
|
||||
FileDescription = "Servo"
|
||||
LegalCopyright = "© The Servo Project Developers"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue