Skip to content

Commit

Permalink
Auto merge of #392 - francesca64:master, r=jdm
Browse files Browse the repository at this point in the history
Fix build on iOS

#365 broke iOS, since `bitflags` was used despite `bitflags` only being included on macOS. Since it looks like the `CGGradient` API is supported on iOS as well, I fixed this by just removing the `#[cfg(target_os = "macos")]` line on `extern crate bitflags`.

If I made a follow-up PR that adds iOS to CI, would that be welcome?
  • Loading branch information
bors-servo committed Jun 26, 2020
2 parents cb8d910 + 9ae9c5e commit 475f1ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core-graphics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ extern crate libc;
extern crate core_foundation;

#[macro_use]
#[cfg(target_os = "macos")]
extern crate bitflags;

#[macro_use]
Expand Down

0 comments on commit 475f1ff

Please sign in to comment.