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 @@ -246,6 +246,12 @@ pub fn probe_library(name: &str) -> Result<Library, Error> {
246
246
Config :: new ( ) . probe ( name)
247
247
}
248
248
249
+ #[ doc( hidden) ]
250
+ #[ deprecated( note = "use config.target_supported() instance method instead" ) ]
251
+ pub fn target_supported ( ) -> bool {
252
+ Config :: new ( ) . target_supported ( )
253
+ }
254
+
249
255
/// Run `pkg-config` to get the value of a variable from a package using
250
256
/// `--variable`.
251
257
///
@@ -394,6 +400,7 @@ impl Config {
394
400
Ok ( library)
395
401
}
396
402
403
+ /// True if pkg-config is used for the host system, or configured for cross-compilation
397
404
pub fn target_supported ( & self ) -> bool {
398
405
let target = env:: var_os ( "TARGET" ) . unwrap_or_default ( ) ;
399
406
let host = env:: var_os ( "HOST" ) . unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments