aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/60 identity cross/host_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/60 identity cross/host_wrapper.py')
-rwxr-xr-xtest cases/unit/60 identity cross/host_wrapper.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/unit/60 identity cross/host_wrapper.py b/test cases/unit/60 identity cross/host_wrapper.py
new file mode 100755
index 0000000..a3a694a
--- /dev/null
+++ b/test cases/unit/60 identity cross/host_wrapper.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+import subprocess, sys, platform
+
+# Meson does not yet support Studio cc on Solaris, only gcc or clang
+if platform.system() == 'SunOS':
+ cc = 'gcc'
+else:
+ cc = 'cc'
+
+subprocess.call([cc, "-DEXTERNAL_HOST"] + sys.argv[1:])