Skip to content

Commit

Permalink
Convert fam to Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Dec 23, 2016
1 parent c59bb49 commit 4dcb867
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,10 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
let mut ret = HashSet::new();
// Target bindings.
ret.insert((Symbol::intern("target_os"), Some(Symbol::intern(os))));
if let Some(fam) = sess.target.target.options.target_family {
ret.insert((Symbol::intern("target_family"), Some(fam)));
if let Some(ref fam) = sess.target.target.options.target_family {
ret.insert((Symbol::intern("target_family"), Some(Symbol::intern(fam))));
if fam == "windows" || fam == "unix" {
ret.insert((fam, None));
ret.insert((Symbol::intern(fam), None));
}
}
ret.insert((Symbol::intern("target_arch"), Some(Symbol::intern(arch))));
Expand Down

0 comments on commit 4dcb867

Please sign in to comment.