File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub(crate) struct Features {
24
24
pub ( crate ) struct Env {
25
25
pub ( crate ) path : Option < PathBuf > ,
26
26
pub ( crate ) include_path : Option < PathBuf > ,
27
+ pub ( crate ) additional_include_path : Option < PathBuf > ,
27
28
pub ( crate ) source_path : Option < PathBuf > ,
28
29
pub ( crate ) precompiled_bcm_o : Option < PathBuf > ,
29
30
pub ( crate ) assume_patched : bool ,
@@ -146,6 +147,8 @@ impl Env {
146
147
Self {
147
148
path : boringssl_var ( "BORING_BSSL_PATH" ) . map ( PathBuf :: from) ,
148
149
include_path : boringssl_var ( "BORING_BSSL_INCLUDE_PATH" ) . map ( PathBuf :: from) ,
150
+ additional_include_path : boringssl_var ( "BORING_ADDITIONAL_INCLUDE_PATH" )
151
+ . map ( PathBuf :: from) ,
149
152
source_path : boringssl_var ( "BORING_BSSL_SOURCE_PATH" ) . map ( PathBuf :: from) ,
150
153
precompiled_bcm_o : boringssl_var ( "BORING_BSSL_PRECOMPILED_BCM_O" ) . map ( PathBuf :: from) ,
151
154
assume_patched : boringssl_var ( "BORING_BSSL_ASSUME_PATCHED" )
Original file line number Diff line number Diff line change @@ -690,6 +690,12 @@ fn main() {
690
690
. clang_arg ( "-I" )
691
691
. clang_arg ( include_path. display ( ) . to_string ( ) ) ;
692
692
693
+ if let Some ( additional_include_path) = config. env . additional_include_path {
694
+ builder = builder
695
+ . clang_arg ( "-I" )
696
+ . clang_arg ( additional_include_path. display ( ) . to_string ( ) ) ;
697
+ }
698
+
693
699
if let Some ( sysroot) = & config. env . sysroot {
694
700
builder = builder
695
701
. clang_arg ( "--sysroot" )
You can’t perform that action at this time.
0 commit comments