|
|
|
@ -19,6 +19,7 @@ import subprocess |
|
|
|
|
import re, json |
|
|
|
|
import tempfile |
|
|
|
|
import unittest, os, sys, shutil, time |
|
|
|
|
import platform |
|
|
|
|
from glob import glob |
|
|
|
|
from pathlib import PurePath |
|
|
|
|
import mesonbuild.compilers |
|
|
|
@ -883,10 +884,14 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
def test_always_prefer_c_compiler_for_asm(self): |
|
|
|
|
testdir = os.path.join(self.common_test_dir, '141 c cpp and asm') |
|
|
|
|
# Skip if building with MSVC |
|
|
|
|
env = Environment(testdir, self.builddir, self.meson_command, |
|
|
|
|
get_fake_options(self.prefix), []) |
|
|
|
|
if env.detect_c_compiler(False).get_id() == 'msvc': |
|
|
|
|
raise unittest.SkipTest('MSVC can\'t compile assembly') |
|
|
|
|
#env = Environment(testdir, self.builddir, self.meson_command, |
|
|
|
|
# get_fake_options(self.prefix), []) |
|
|
|
|
#if env.detect_c_compiler(False).get_id() == 'msvc': |
|
|
|
|
# raise unittest.SkipTest('MSVC can\'t compile assembly') |
|
|
|
|
# |
|
|
|
|
# Re-enable the above once the MinGW issue is fixed. |
|
|
|
|
if platform.system().lower() == 'windows': |
|
|
|
|
raise unittest.SkipTest('Skipping on Windows because MinGW CI is failng.') |
|
|
|
|
self.init(testdir) |
|
|
|
|
commands = {'c-asm': {}, 'cpp-asm': {}, 'cpp-c-asm': {}, 'c-cpp-asm': {}} |
|
|
|
|
for cmd in self.get_compdb(): |
|
|
|
|