]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/android_base.rs
Rollup merge of #104732 - WaffleLapkin:from_def_idn't, r=compiler-errors
[rust.git] / compiler / rustc_target / src / spec / android_base.rs
1 use crate::spec::{SanitizerSet, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     let mut base = super::linux_base::opts();
5     base.os = "android".into();
6     base.is_like_android = true;
7     base.default_dwarf_version = 2;
8     base.has_thread_local = false;
9     base.supported_sanitizers = SanitizerSet::ADDRESS;
10     // This is for backward compatibility, see https://github.com/rust-lang/rust/issues/49867
11     // for context. (At that time, there was no `-C force-unwind-tables`, so the only solution
12     // was to always emit `uwtable`).
13     base.default_uwtable = true;
14     base.crt_static_respected = true;
15     base
16 }