Skip to content

Commit 4f3c555

Browse files
committed
---
yaml --- r: 93630 b: refs/heads/try c: 86787f8 h: refs/heads/master v: v3
1 parent 2ef3037 commit 4f3c555

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: f698decf3701cc51a61bbc3e36971898339ba91e
5+
refs/heads/try: 86787f8befe0f8971f27bd15be1e16ec7aa99e7e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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)