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