]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/android_base.rs
Auto merge of #77618 - fusion-engineering-forks:windows-parker, r=Amanieu
[rust.git] / compiler / rustc_target / src / spec / android_base.rs
1 use crate::spec::{LinkerFlavor, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     let mut base = super::linux_gnu_base::opts();
5     base.os = "android".to_string();
6     // Many of the symbols defined in compiler-rt are also defined in libgcc.
7     // Android's linker doesn't like that by default.
8     base.pre_link_args
9         .get_mut(&LinkerFlavor::Gcc)
10         .unwrap()
11         .push("-Wl,--allow-multiple-definition".to_string());
12     base.dwarf_version = Some(2);
13     base.position_independent_executables = true;
14     base.has_elf_tls = false;
15     base.requires_uwtable = true;
16     base.crt_static_respected = false;
17     base
18 }