File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ fn main() {
1212 if let Ok ( lib) = pkg_config:: Config :: new ( ) . probe ( "libpcre2-8" ) {
1313 include_paths = lib. include_paths . clone ( ) ;
1414 }
15+ if let Ok ( lib) = pkg_config:: Config :: new ( ) . probe ( "libxxhash" ) {
16+ include_paths. extend ( lib. include_paths . clone ( ) ) ;
17+ }
1518 // Add libyang include paths if found in pkg-config
1619 if let Ok ( lib) = pkg_config:: Config :: new ( ) . probe ( "libyang" ) {
1720 include_paths. extend ( lib. include_paths . clone ( ) ) ;
@@ -74,6 +77,10 @@ fn main() {
7477 println ! ( "cargo:warning=attempting to link without pkg-config" ) ;
7578 println ! ( "cargo:rustc-link-lib=pcre2-8" ) ;
7679 }
80+ if let Err ( e) = pkg_config:: Config :: new ( ) . probe ( "libxxhash" ) {
81+ println ! ( "cargo:warning=failed to find xxhash library with pkg-config: {}" , e) ;
82+ println ! ( "cargo:warning=attempting to link xxhash without pkg-config" ) ;
83+ }
7784 println ! ( "cargo:rustc-link-lib=static=yang" ) ;
7885 println ! ( "cargo:rerun-if-changed=libyang" ) ;
7986 }
You can’t perform that action at this time.
0 commit comments