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> {
246246 Config :: new ( ) . probe ( name)
247247}
248248
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+
249255/// Run `pkg-config` to get the value of a variable from a package using
250256/// `--variable`.
251257///
@@ -394,6 +400,7 @@ impl Config {
394400 Ok ( library)
395401 }
396402
403+ /// True if pkg-config is used for the host system, or configured for cross-compilation
397404 pub fn target_supported ( & self ) -> bool {
398405 let target = env:: var_os ( "TARGET" ) . unwrap_or_default ( ) ;
399406 let host = env:: var_os ( "HOST" ) . unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments