@@ -79,6 +79,7 @@ pub struct Config {
7979 pub llvm_assertions : bool ,
8080 pub llvm_optimize : bool ,
8181 pub llvm_release_debuginfo : bool ,
82+ pub llvm_thin_lto : bool ,
8283 pub llvm_version_check : bool ,
8384 pub llvm_static_stdcpp : bool ,
8485 pub llvm_link_shared : bool ,
@@ -161,6 +162,7 @@ pub struct Target {
161162 pub cc : Option < PathBuf > ,
162163 pub cxx : Option < PathBuf > ,
163164 pub ar : Option < PathBuf > ,
165+ pub ranlib : Option < PathBuf > ,
164166 pub linker : Option < PathBuf > ,
165167 pub ndk : Option < PathBuf > ,
166168 pub crt_static : Option < bool > ,
@@ -245,6 +247,7 @@ struct Llvm {
245247 assertions : Option < bool > ,
246248 optimize : Option < bool > ,
247249 release_debuginfo : Option < bool > ,
250+ thin_lto : Option < bool > ,
248251 version_check : Option < bool > ,
249252 static_libstdcpp : Option < bool > ,
250253 targets : Option < String > ,
@@ -321,6 +324,7 @@ struct TomlTarget {
321324 cc : Option < String > ,
322325 cxx : Option < String > ,
323326 ar : Option < String > ,
327+ ranlib : Option < String > ,
324328 linker : Option < String > ,
325329 android_ndk : Option < String > ,
326330 crt_static : Option < bool > ,
@@ -499,6 +503,7 @@ impl Config {
499503 llvm_assertions = llvm. assertions ;
500504 set ( & mut config. llvm_optimize , llvm. optimize ) ;
501505 set ( & mut config. llvm_release_debuginfo , llvm. release_debuginfo ) ;
506+ set ( & mut config. llvm_thin_lto , llvm. thin_lto ) ;
502507 set ( & mut config. llvm_version_check , llvm. version_check ) ;
503508 set ( & mut config. llvm_static_stdcpp , llvm. static_libstdcpp ) ;
504509 set ( & mut config. llvm_link_shared , llvm. link_shared ) ;
@@ -569,6 +574,7 @@ impl Config {
569574 target. cc = cfg. cc . clone ( ) . map ( PathBuf :: from) ;
570575 target. cxx = cfg. cxx . clone ( ) . map ( PathBuf :: from) ;
571576 target. ar = cfg. ar . clone ( ) . map ( PathBuf :: from) ;
577+ target. ranlib = cfg. ranlib . clone ( ) . map ( PathBuf :: from) ;
572578 target. linker = cfg. linker . clone ( ) . map ( PathBuf :: from) ;
573579 target. crt_static = cfg. crt_static . clone ( ) ;
574580 target. musl_root = cfg. musl_root . clone ( ) . map ( PathBuf :: from) ;
0 commit comments