@@ -388,6 +388,7 @@ impl PartialEq<&str> for TargetSelection {
388388pub struct Target {
389389 /// Some(path to llvm-config) if using an external LLVM.
390390 pub llvm_config : Option < PathBuf > ,
391+ pub llvm_has_rust_patches : Option < bool > ,
391392 /// Some(path to FileCheck) if one was specified.
392393 pub llvm_filecheck : Option < PathBuf > ,
393394 pub llvm_libunwind : Option < LlvmLibunwind > ,
@@ -729,6 +730,7 @@ define_config! {
729730 default_linker: Option <PathBuf > = "default-linker" ,
730731 linker: Option <String > = "linker" ,
731732 llvm_config: Option <String > = "llvm-config" ,
733+ llvm_has_rust_patches: Option <bool > = "llvm-has-rust-patches" ,
732734 llvm_filecheck: Option <String > = "llvm-filecheck" ,
733735 llvm_libunwind: Option <String > = "llvm-libunwind" ,
734736 android_ndk: Option <String > = "android-ndk" ,
@@ -1140,6 +1142,7 @@ impl Config {
11401142 if let Some ( ref s) = cfg. llvm_config {
11411143 target. llvm_config = Some ( config. src . join ( s) ) ;
11421144 }
1145+ target. llvm_has_rust_patches = cfg. llvm_has_rust_patches ;
11431146 if let Some ( ref s) = cfg. llvm_filecheck {
11441147 target. llvm_filecheck = Some ( config. src . join ( s) ) ;
11451148 }
0 commit comments