From 6b5ff851a346312179cd44dd3d5212ce63d59f5c Mon Sep 17 00:00:00 2001 From: Kreeblah Date: Sat, 8 May 2021 11:23:54 -0700 Subject: [PATCH] Updated dylibbundler test --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 35add1ac7..c51aa274f 100644 --- a/SConstruct +++ b/SConstruct @@ -414,6 +414,7 @@ class ConfigureTests(_ConfigureTests): _implicit_test = Collector() _custom_test = Collector() _guarded_test_windows = GuardedCollector(_custom_test, lambda user_settings: user_settings.host_platform == 'win32') + _guarded_test_darwin = GuardedCollector(_custom_test, lambda user_settings: user_settings.host_platform == 'darwin') implicit_tests = _implicit_test.tests custom_tests = _custom_test.tests comment_not_supported = '/* not supported */' @@ -2892,10 +2893,10 @@ BOOST_AUTO_TEST_CASE(f) # however it's only meaningful for macOS builds, and, for those, # only required when frameworks are not used for the build. Builds # should not fail on other operating system targets if it's absent. - @_custom_test + @_guarded_test_darwin def _check_dylibbundler(self,context): context.Display('%s: checking whether dylibbundler is installed...' % self.msgprefix) - if self.user_settings.host_platform != 'darwin' or self.user_settings.macos_add_frameworks: + if self.user_settings.macos_add_frameworks: context.Result('n/a') return dylibbundler_output = os.popen('dylibbundler -h').read()