aboutsummaryrefslogtreecommitdiff
path: root/run_cross_test.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-12-04 20:12:20 +0000
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-09-11 20:45:09 +0000
commit6a56291a2a7dc5ea1443f29f3715c7491152f034 (patch)
tree0c53e53a9b5ec4955699dc806690669467cc6d40 /run_cross_test.py
parenta908404e6d2380ae6b10c290d1870ac6ede2965a (diff)
downloadmeson-6a56291a2a7dc5ea1443f29f3715c7491152f034.zip
meson-6a56291a2a7dc5ea1443f29f3715c7491152f034.tar.gz
meson-6a56291a2a7dc5ea1443f29f3715c7491152f034.tar.bz2
Add a test run of MSVC ARM64 cross on Windows x64
Add a cross-file for MSVC UWP ARM64. Bump cidata tag to get an updated install.ps1 script (run by run.ps1) which sets the vcvars environment correctly when cross-compiling. Since arranging the correct environment for simultaneous cross and native 'cl' use is hard, this is test run uses '--cross-only' so we don't require a native compiler. Extend '--cross-only' so it also explicitly uses a machine file which makes all build machine compilers unusable.
Diffstat (limited to 'run_cross_test.py')
-rwxr-xr-xrun_cross_test.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/run_cross_test.py b/run_cross_test.py
index 70db667..6cba324 100755
--- a/run_cross_test.py
+++ b/run_cross_test.py
@@ -29,7 +29,14 @@ def runtests(cross_file, failfast, cross_only):
tests = ['--only', 'common']
if not cross_only:
tests.append('native')
- cmd = mesonlib.python_command + ['run_project_tests.py', '--backend', 'ninja'] + (['--failfast'] if failfast else []) + tests + ['--cross-file', cross_file]
+ cmd = mesonlib.python_command + ['run_project_tests.py', '--backend', 'ninja']
+ if failfast:
+ cmd += ['--failfast']
+ cmd += tests
+ cmd += ['--cross-file', cross_file]
+ cmd += ['--'] # args following this are passed directly to meson
+ if cross_only:
+ cmd += ['--native-file', 'cross/none.txt']
return subprocess.call(cmd)
def main():