summaryrefslogtreecommitdiff
path: root/script/identity_cc.sh
diff options
context:
space:
mode:
authorUri Simchoni <urisimchoni@gmail.com>2015-05-19 11:44:03 +0300
committerAndrew Bartlett <abartlet@samba.org>2015-05-20 11:19:11 +0200
commit13ce285b24d4f1a3e9e1e2f6eb45a53ff9f2d642 (patch)
tree181db041b517b92b09059a44804e494f4de43642 /script/identity_cc.sh
parent1c58fee706e02410966d3f9db89a7525fd2cb8a7 (diff)
downloadsamba-13ce285b24d4f1a3e9e1e2f6eb45a53ff9f2d642.tar.gz
waf: add a cross-execute program that runs natively
This added script is for supporting self-testing of the cross-build infrastructure using autobuild. The script can be used as the --cross-execute parameter to samba's configure process, but it actually runs the program natively on the build machine. This can be done if the build is actually a native build disguised as a cross-build, i.e. native toolchain is being used. Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'script/identity_cc.sh')
-rwxr-xr-xscript/identity_cc.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/identity_cc.sh b/script/identity_cc.sh
new file mode 100755
index 00000000000..8b5118e22c2
--- /dev/null
+++ b/script/identity_cc.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#An "identity cross-execute" script
+#It can be used for testing the cross-build infrastructure
+#as follows:
+#./configure --cross-compile --cross-execute=./script/identity_cc.sh
+#If the build is actually a native build, then the configuration
+#result should be just like running ./configure without --cross-compile.
+
+eval "$@"