Skip to content

Commit cf7cf48

Browse files
committed
Export t! from the bootstrap lib so bins can use it
1 parent bd2e51a commit cf7cf48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ use once_cell::sync::OnceCell;
122122
use crate::builder::Kind;
123123
use crate::config::{LlvmLibunwind, TargetSelection};
124124
use crate::util::{
125-
check_run, exe, libdir, mtime, output, run, run_suppressed, t, try_run, try_run_suppressed,
126-
CiEnv,
125+
check_run, exe, libdir, mtime, output, run, run_suppressed, try_run, try_run_suppressed, CiEnv,
127126
};
128127

129128
mod builder;

src/bootstrap/util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use crate::config::{Config, TargetSelection};
2222
///
2323
/// This is currently used judiciously throughout the build system rather than
2424
/// using a `Result` with `try!`, but this may change one day...
25+
#[macro_export]
2526
macro_rules! t {
2627
($e:expr) => {
2728
match $e {
@@ -37,7 +38,7 @@ macro_rules! t {
3738
}
3839
};
3940
}
40-
pub(crate) use t;
41+
pub use t;
4142

4243
/// Given an executable called `name`, return the filename for the
4344
/// executable for a particular target.

0 commit comments

Comments
 (0)