]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/spec/android_base.rs
Rollup merge of #61675 - fintelia:riscv-frame-pointer, r=nagisa
[rust.git] / src / librustc_target / spec / android_base.rs
1 use crate::spec::{LinkerFlavor, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     let mut base = super::linux_base::opts();
5     // Many of the symbols defined in compiler-rt are also defined in libgcc.
6     // Android's linker doesn't like that by default.
7     base.pre_link_args
8         .get_mut(&LinkerFlavor::Gcc).unwrap().push("-Wl,--allow-multiple-definition".to_string());
9     base.is_like_android = true;
10     base.position_independent_executables = true;
11     base.has_elf_tls = false;
12     base.requires_uwtable = true;
13     base
14 }