@@ -100,6 +100,7 @@ pub struct Config {
100
100
pub musl_root : Option < PathBuf > ,
101
101
pub prefix : Option < PathBuf > ,
102
102
pub docdir : Option < PathBuf > ,
103
+ pub bindir : Option < PathBuf > ,
103
104
pub libdir : Option < PathBuf > ,
104
105
pub libdir_relative : Option < PathBuf > ,
105
106
pub mandir : Option < PathBuf > ,
@@ -165,9 +166,10 @@ struct Build {
165
166
#[ derive( RustcDecodable , Default , Clone ) ]
166
167
struct Install {
167
168
prefix : Option < String > ,
168
- mandir : Option < String > ,
169
169
docdir : Option < String > ,
170
+ bindir : Option < String > ,
170
171
libdir : Option < String > ,
172
+ mandir : Option < String > ,
171
173
}
172
174
173
175
/// TOML representation of how the LLVM build is configured.
@@ -315,9 +317,10 @@ impl Config {
315
317
316
318
if let Some ( ref install) = toml. install {
317
319
config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
318
- config. mandir = install. mandir . clone ( ) . map ( PathBuf :: from) ;
319
320
config. docdir = install. docdir . clone ( ) . map ( PathBuf :: from) ;
321
+ config. bindir = install. bindir . clone ( ) . map ( PathBuf :: from) ;
320
322
config. libdir = install. libdir . clone ( ) . map ( PathBuf :: from) ;
323
+ config. mandir = install. mandir . clone ( ) . map ( PathBuf :: from) ;
321
324
}
322
325
323
326
if let Some ( ref llvm) = toml. llvm {
@@ -526,6 +529,9 @@ impl Config {
526
529
"CFG_DOCDIR" => {
527
530
self . docdir = Some ( PathBuf :: from ( value) ) ;
528
531
}
532
+ "CFG_BINDIR" => {
533
+ self . bindir = Some ( PathBuf :: from ( value) ) ;
534
+ }
529
535
"CFG_LIBDIR" => {
530
536
self . libdir = Some ( PathBuf :: from ( value) ) ;
531
537
}
0 commit comments