diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-02-05 21:18:13 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-02-20 21:58:32 +0000 |
commit | a0996ef86fddea45b53e197f520ab8111a10e5c0 (patch) | |
tree | 74950cd835df9c10bb91ea0ff61ac5d2798e23c5 /buildtools | |
parent | a4307072d6ea5ddef5b37aa361e9e9f16f7254e7 (diff) | |
download | samba-a0996ef86fddea45b53e197f520ab8111a10e5c0.tar.gz |
Skip running a C program during cross compilation
When passing --cross-compile, one has to specify a --cross-answers file
and this test cannot be performed anyway, so skip it already.
Signed-off-by: Helmut Grohne <helmut@subdivi.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index a33d26706a5..93af81f1eca 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -378,7 +378,7 @@ def configure(conf): conf.CHECK_CODE('printf("hello world")', define='HAVE_SIMPLE_C_PROG', mandatory=True, - execute=True, + execute=not conf.env.CROSS_COMPILE, headers='stdio.h', msg='Checking simple C program') |