@@ -100,6 +100,7 @@ pub struct Config {
100100 pub musl_root : Option < PathBuf > ,
101101 pub prefix : Option < PathBuf > ,
102102 pub docdir : Option < PathBuf > ,
103+ pub bindir : Option < PathBuf > ,
103104 pub libdir : Option < PathBuf > ,
104105 pub libdir_relative : Option < PathBuf > ,
105106 pub mandir : Option < PathBuf > ,
@@ -165,9 +166,10 @@ struct Build {
165166#[ derive( RustcDecodable , Default , Clone ) ]
166167struct Install {
167168 prefix : Option < String > ,
168- mandir : Option < String > ,
169169 docdir : Option < String > ,
170+ bindir : Option < String > ,
170171 libdir : Option < String > ,
172+ mandir : Option < String > ,
171173}
172174
173175/// TOML representation of how the LLVM build is configured.
@@ -315,9 +317,10 @@ impl Config {
315317
316318 if let Some ( ref install) = toml. install {
317319 config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
318- config. mandir = install. mandir . clone ( ) . map ( PathBuf :: from) ;
319320 config. docdir = install. docdir . clone ( ) . map ( PathBuf :: from) ;
321+ config. bindir = install. bindir . clone ( ) . map ( PathBuf :: from) ;
320322 config. libdir = install. libdir . clone ( ) . map ( PathBuf :: from) ;
323+ config. mandir = install. mandir . clone ( ) . map ( PathBuf :: from) ;
321324 }
322325
323326 if let Some ( ref llvm) = toml. llvm {
@@ -526,6 +529,9 @@ impl Config {
526529 "CFG_DOCDIR" => {
527530 self . docdir = Some ( PathBuf :: from ( value) ) ;
528531 }
532+ "CFG_BINDIR" => {
533+ self . bindir = Some ( PathBuf :: from ( value) ) ;
534+ }
529535 "CFG_LIBDIR" => {
530536 self . libdir = Some ( PathBuf :: from ( value) ) ;
531537 }
0 commit comments