aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-11-12 20:36:27 +0200
committerGitHub <noreply@github.com>2020-11-12 20:36:27 +0200
commit41a79a0757eadf74ea6c3d8985400c56083b68cb (patch)
treec1711634c1a007a74e826188a606f0de483e5c77 /run_unittests.py
parentd2aac3d80984b51919ecc39e50d5cec32b264580 (diff)
parent33729240076d6b812116374edc5defbdaffcebbf (diff)
downloadmeson-41a79a0757eadf74ea6c3d8985400c56083b68cb.zip
meson-41a79a0757eadf74ea6c3d8985400c56083b68cb.tar.gz
meson-41a79a0757eadf74ea6c3d8985400c56083b68cb.tar.bz2
Merge pull request #7965 from dcbaker/wip/2020-11/macos-github-actions
Migrate osx CI from travis to github actions
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 7b1a37d..97110bc 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from mesonbuild.compilers.objc import AppleClangObjCCompiler
import time
import stat
import subprocess
@@ -7334,6 +7335,11 @@ c = ['{0}']
with mock.patch.dict(os.environ, {envvar: name}):
env = get_fake_env()
comp = getattr(env, 'detect_{}_compiler'.format(lang))(MachineChoice.HOST)
+ if isinstance(comp, (mesonbuild.compilers.AppleClangCCompiler,
+ mesonbuild.compilers.AppleClangCPPCompiler,
+ mesonbuild.compilers.AppleClangObjCCompiler,
+ mesonbuild.compilers.AppleClangObjCPPCompiler)):
+ raise unittest.SkipTest('AppleClang is currently only supported with ld64')
if lang != 'rust' and comp.use_linker_args('bfd') == []:
raise unittest.SkipTest(
'Compiler {} does not support using alternative linkers'.format(comp.id))