rustc_target: Move target_os from Target to TargetOptions

This commit is contained in:
Vadim Petrochenkov
2020-10-08 20:54:45 +03:00
parent 91533cf10e
commit 74ffb9b4a2
173 changed files with 52 additions and 169 deletions

View File

@@ -2,6 +2,7 @@ use crate::spec::{LinkerFlavor, TargetOptions};
pub fn opts() -> TargetOptions {
let mut base = super::linux_base::opts();
base.target_os = "android".to_string();
// Many of the symbols defined in compiler-rt are also defined in libgcc.
// Android's linker doesn't like that by default.
base.pre_link_args