about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/base/android.rs
blob: df2757aaabf65dea451fa025c61740d7f9d12d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::spec::{SanitizerSet, TargetOptions, TlsModel, base};

pub(crate) fn opts() -> TargetOptions {
    let mut base = base::linux::opts();
    base.os = "android".into();
    base.is_like_android = true;
    base.default_dwarf_version = 2;
    base.tls_model = TlsModel::Emulated;
    base.has_thread_local = false;
    base.supported_sanitizers = SanitizerSet::ADDRESS;
    base.crt_static_respected = true;
    base
}