]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | use crate::spec::{SanitizerSet, TargetOptions}; |
223e47cc | 2 | |
d9579d0f | 3 | pub fn opts() -> TargetOptions { |
c295e0f8 | 4 | let mut base = super::linux_base::opts(); |
5e7ed085 | 5 | base.os = "android".into(); |
2b03887a | 6 | base.is_like_android = true; |
064997fb | 7 | base.default_dwarf_version = 2; |
a2a8927a | 8 | base.has_thread_local = false; |
2b03887a | 9 | base.supported_sanitizers = SanitizerSet::ADDRESS; |
cdc7bbd5 XL |
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; | |
f2b60f7d | 14 | base.crt_static_respected = true; |
d9579d0f | 15 | base |
223e47cc | 16 | } |