Skip to content

Commit 0fa8fbc

Browse files
committed
---
yaml --- r: 96042 b: refs/heads/dist-snap c: 86787f8 h: refs/heads/master v: v3
1 parent 2310aa3 commit 0fa8fbc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: f698decf3701cc51a61bbc3e36971898339ba91e
9+
refs/heads/dist-snap: 86787f8befe0f8971f27bd15be1e16ec7aa99e7e
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/driver/session.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ pub static no_vectorize_loops: uint = 1 << 26;
7676
pub static no_vectorize_slp: uint = 1 << 27;
7777
pub static no_prepopulate_passes: uint = 1 << 28;
7878
pub static use_softfp: uint = 1 << 29;
79+
pub static gen_crate_map: uint = 1 << 30;
7980

8081
pub fn debugging_opts_map() -> ~[(&'static str, &'static str, uint)] {
8182
~[("verbose", "in general, enable more debug printouts", verbose),
@@ -128,6 +129,7 @@ pub fn debugging_opts_map() -> ~[(&'static str, &'static str, uint)] {
128129
"Don't run LLVM's SLP vectorization passes",
129130
no_vectorize_slp),
130131
("soft-float", "Generate software floating point library calls", use_softfp),
132+
("gen-crate-map", "Force generation of a toplevel crate map", gen_crate_map),
131133
]
132134
}
133135

@@ -331,6 +333,9 @@ impl Session_ {
331333
pub fn no_vectorize_slp(&self) -> bool {
332334
self.debugging_opt(no_vectorize_slp)
333335
}
336+
pub fn gen_crate_map(&self) -> bool {
337+
self.debugging_opt(gen_crate_map)
338+
}
334339

335340
// pointless function, now...
336341
pub fn str_of(&self, id: ast::Ident) -> @str {

branches/dist-snap/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ pub fn decl_crate_map(sess: session::Session, mapmeta: LinkMeta,
29492949
let mut n_subcrates = 1;
29502950
let cstore = sess.cstore;
29512951
while cstore::have_crate_data(cstore, n_subcrates) { n_subcrates += 1; }
2952-
let mapname = if *sess.building_library {
2952+
let mapname = if *sess.building_library && !sess.gen_crate_map() {
29532953
format!("{}_{}_{}", mapmeta.name, mapmeta.vers, mapmeta.extras_hash)
29542954
} else {
29552955
~"toplevel"

0 commit comments

Comments
 (0)