aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/61 identity cross/build_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/61 identity cross/build_wrapper.py')
-rwxr-xr-xmeson/test cases/unit/61 identity cross/build_wrapper.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/meson/test cases/unit/61 identity cross/build_wrapper.py b/meson/test cases/unit/61 identity cross/build_wrapper.py
new file mode 100755
index 000000000..15d5c07dd
--- /dev/null
+++ b/meson/test cases/unit/61 identity cross/build_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_BUILD"] + sys.argv[1:])