mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-09 04:13:22 +00:00
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
--- a/compiler/rustc_driver_impl/src/lib.rs
|
|
+++ b/compiler/rustc_driver_impl/src/lib.rs
|
|
@@ -97,10 +97,10 @@
|
|
// Keep the OS parts of this `cfg` in sync with the `cfg` on the `libc`
|
|
// dependency in `compiler/rustc_driver/Cargo.toml`, to keep
|
|
// `-Wunused-crated-dependencies` satisfied.
|
|
-#[cfg(all(not(miri), unix, any(target_env = "gnu", target_os = "macos")))]
|
|
+#[cfg(all(not(miri), unix, any(target_env = "gnu", target_os = "macos", target_os = "android")))]
|
|
mod signal_handler;
|
|
|
|
-#[cfg(not(all(not(miri), unix, any(target_env = "gnu", target_os = "macos"))))]
|
|
+#[cfg(not(all(not(miri), unix, any(target_env = "gnu", target_os = "macos", target_os = "android"))))]
|
|
mod signal_handler {
|
|
/// On platforms which don't support our signal handler's requirements,
|
|
/// simply use the default signal handler provided by std.
|
|
--- a/compiler/rustc_driver_impl/Cargo.toml
|
|
+++ b/compiler/rustc_driver_impl/Cargo.toml
|
|
@@ -54,7 +54,7 @@
|
|
tracing = { version = "0.1.35" }
|
|
# tidy-alphabetical-end
|
|
|
|
-[target.'cfg(all(unix, any(target_env = "gnu", target_os = "macos")))'.dependencies]
|
|
+[target.'cfg(all(unix, any(target_env = "gnu", target_os = "macos", target_os = "android")))'.dependencies]
|
|
# tidy-alphabetical-start
|
|
libc = "0.2"
|
|
# tidy-alphabetical-end
|