Skip to content

Commit ce91c68

Browse files
committed
rustc_taret: Remove TargetOptions::is_like_android
1 parent cf9cf7c commit ce91c68

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

compiler/rustc_target/src/spec/android_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub fn opts() -> TargetOptions {
99
.get_mut(&LinkerFlavor::Gcc)
1010
.unwrap()
1111
.push("-Wl,--allow-multiple-definition".to_string());
12-
base.is_like_android = true;
1312
base.dwarf_version = Some(2);
1413
base.position_independent_executables = true;
1514
base.has_elf_tls = false;

compiler/rustc_target/src/spec/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,6 @@ pub struct TargetOptions {
819819
/// library naming convention. Defaults to false.
820820
pub is_like_windows: bool,
821821
pub is_like_msvc: bool,
822-
/// Whether the target toolchain is like Android's. Only useful for compiling against Android.
823-
/// Defaults to false.
824-
pub is_like_android: bool,
825822
/// Whether the target toolchain is like Emscripten's. Only useful for compiling with
826823
/// Emscripten toolchain.
827824
/// Defaults to false.
@@ -1029,7 +1026,6 @@ impl Default for TargetOptions {
10291026
is_like_osx: false,
10301027
is_like_solaris: false,
10311028
is_like_windows: false,
1032-
is_like_android: false,
10331029
is_like_emscripten: false,
10341030
is_like_msvc: false,
10351031
is_like_fuchsia: false,
@@ -1459,7 +1455,6 @@ impl Target {
14591455
key!(is_like_windows, bool);
14601456
key!(is_like_msvc, bool);
14611457
key!(is_like_emscripten, bool);
1462-
key!(is_like_android, bool);
14631458
key!(is_like_fuchsia, bool);
14641459
key!(dwarf_version, Option<u32>);
14651460
key!(linker_is_gnu, bool);
@@ -1697,7 +1692,6 @@ impl ToJson for Target {
16971692
target_option_val!(is_like_windows);
16981693
target_option_val!(is_like_msvc);
16991694
target_option_val!(is_like_emscripten);
1700-
target_option_val!(is_like_android);
17011695
target_option_val!(is_like_fuchsia);
17021696
target_option_val!(dwarf_version);
17031697
target_option_val!(linker_is_gnu);

0 commit comments

Comments
 (0)