зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #15529 - style: unbreak bindgen on BSDs and Solaris (from jbeich:freebsd); r=emilio
<!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [x] These changes fix Firefox [bug 1339033](https://bugzilla.mozilla.org/show_bug.cgi?id=1339033) <!-- Either: --> - [x] These changes do not require tests because Tier3 platforms support is incomplete <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 5d8870fda9702ed552f7b11f5f772647aa7a6ce1 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 104548fa39db149650233f0e549d797392ed6664
This commit is contained in:
Родитель
e37c8152ee
Коммит
8a4246ea11
|
@ -136,6 +136,16 @@ mod bindings {
|
|||
}
|
||||
if cfg!(target_os = "linux") {
|
||||
builder = builder.clang_arg("-DOS_LINUX=1");
|
||||
} else if cfg!(target_os = "solaris") {
|
||||
builder = builder.clang_arg("-DOS_SOLARIS=1")
|
||||
} else if cfg!(target_os = "dragonfly") {
|
||||
builder = builder.clang_arg("-DOS_BSD=1").clang_arg("-DOS_DRAGONFLY=1")
|
||||
} else if cfg!(target_os = "freebsd") {
|
||||
builder = builder.clang_arg("-DOS_BSD=1").clang_arg("-DOS_FREEBSD=1")
|
||||
} else if cfg!(target_os = "netbsd") {
|
||||
builder = builder.clang_arg("-DOS_BSD=1").clang_arg("-DOS_NETBSD=1")
|
||||
} else if cfg!(target_os = "openbsd") {
|
||||
builder = builder.clang_arg("-DOS_BSD=1").clang_arg("-DOS_OPENBSD=1")
|
||||
} else if cfg!(target_os = "macos") {
|
||||
builder = builder.clang_arg("-DOS_MACOSX=1")
|
||||
.clang_arg("-stdlib=libc++")
|
||||
|
|
Загрузка…
Ссылка в новой задаче