File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 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 {
2424pub ( crate ) struct Env {
2525 pub ( crate ) path : Option < PathBuf > ,
2626 pub ( crate ) include_path : Option < PathBuf > ,
27+ pub ( crate ) additional_include_path : Option < PathBuf > ,
2728 pub ( crate ) source_path : Option < PathBuf > ,
2829 pub ( crate ) precompiled_bcm_o : Option < PathBuf > ,
2930 pub ( crate ) assume_patched : bool ,
@@ -146,6 +147,8 @@ impl Env {
146147 Self {
147148 path : boringssl_var ( "BORING_BSSL_PATH" ) . map ( PathBuf :: from) ,
148149 include_path : boringssl_var ( "BORING_BSSL_INCLUDE_PATH" ) . map ( PathBuf :: from) ,
150+ additional_include_path : boringssl_var ( "BORING_BSSL_ADDITIONAL_INCLUDE_PATH" )
151+ . map ( PathBuf :: from) ,
149152 source_path : boringssl_var ( "BORING_BSSL_SOURCE_PATH" ) . map ( PathBuf :: from) ,
150153 precompiled_bcm_o : boringssl_var ( "BORING_BSSL_PRECOMPILED_BCM_O" ) . map ( PathBuf :: from) ,
151154 assume_patched : boringssl_var ( "BORING_BSSL_ASSUME_PATCHED" )
Original file line number Diff line number Diff line change @@ -690,6 +690,12 @@ fn main() {
690690 . clang_arg ( "-I" )
691691 . clang_arg ( include_path. display ( ) . to_string ( ) ) ;
692692
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+
693699 if let Some ( sysroot) = & config. env . sysroot {
694700 builder = builder
695701 . clang_arg ( "--sysroot" )
You can’t perform that action at this time.
0 commit comments