summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_target/src/spec/solaris_base.rs
blob: f97cdb4fb28427b8d453d35da79a14b4b40cafdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::spec::{cvs, Cc, LinkerFlavor, TargetOptions};

pub fn opts() -> TargetOptions {
    TargetOptions {
        os: "solaris".into(),
        dynamic_linking: true,
        has_rpath: true,
        families: cvs!["unix"],
        is_like_solaris: true,
        linker_flavor: LinkerFlavor::Unix(Cc::Yes),
        limit_rdylib_exports: false, // Linker doesn't support this
        eh_frame_header: false,

        ..Default::default()
    }
}