@@ -388,6 +388,7 @@ impl PartialEq<&str> for TargetSelection {
388
388
pub struct Target {
389
389
/// Some(path to llvm-config) if using an external LLVM.
390
390
pub llvm_config : Option < PathBuf > ,
391
+ pub llvm_has_rust_patches : Option < bool > ,
391
392
/// Some(path to FileCheck) if one was specified.
392
393
pub llvm_filecheck : Option < PathBuf > ,
393
394
pub llvm_libunwind : Option < LlvmLibunwind > ,
@@ -729,6 +730,7 @@ define_config! {
729
730
default_linker: Option <PathBuf > = "default-linker" ,
730
731
linker: Option <String > = "linker" ,
731
732
llvm_config: Option <String > = "llvm-config" ,
733
+ llvm_has_rust_patches: Option <bool > = "llvm-has-rust-patches" ,
732
734
llvm_filecheck: Option <String > = "llvm-filecheck" ,
733
735
llvm_libunwind: Option <String > = "llvm-libunwind" ,
734
736
android_ndk: Option <String > = "android-ndk" ,
@@ -1140,6 +1142,7 @@ impl Config {
1140
1142
if let Some ( ref s) = cfg. llvm_config {
1141
1143
target. llvm_config = Some ( config. src . join ( s) ) ;
1142
1144
}
1145
+ target. llvm_has_rust_patches = cfg. llvm_has_rust_patches ;
1143
1146
if let Some ( ref s) = cfg. llvm_filecheck {
1144
1147
target. llvm_filecheck = Some ( config. src . join ( s) ) ;
1145
1148
}
0 commit comments