wafsamba: use test_args instead of exec_args to support cross-compilation
authorUri Simchoni <uri@samba.org>
Sun, 6 Oct 2019 21:37:17 +0000 (00:37 +0300)
committerUri Simchoni <uri@samba.org>
Sun, 20 Oct 2019 12:06:30 +0000 (12:06 +0000)
exec_args seems to have been a custom addition to Samba's copy of waf.
Upstream Waf has an identically-purposed parameter called test_args.

This parameter is being used for addiing runtime args to test programs that
are being run during configuration phases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13846

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_autoconf.py
buildtools/wafsamba/samba_cross.py

index 63664a411609b71fb8ca8fb866304a6674823db7..683f0d5316b8d79b987492d845a07c665c8e88ce 100644 (file)
@@ -422,9 +422,9 @@ def CHECK_CODE(conf, code, define,
     cflags.extend(ccflags)
 
     if on_target:
-        exec_args = conf.SAMBA_CROSS_ARGS(msg=msg)
+        test_args = conf.SAMBA_CROSS_ARGS(msg=msg)
     else:
-        exec_args = []
+        test_args = []
 
     conf.COMPOUND_START(msg)
 
@@ -439,7 +439,7 @@ def CHECK_CODE(conf, code, define,
                      type=type,
                      msg=msg,
                      quote=quote,
-                     exec_args=exec_args,
+                     test_args=test_args,
                      define_ret=define_ret)
     except Exception:
         if always:
index 8863c2c53e7d7dd9317c9233f0085ffd0eea6b2f..60ddf96723769a944fe829fb8a97838f79b82e5e 100644 (file)
@@ -139,7 +139,7 @@ class cross_Popen(Utils.subprocess.Popen):
 
 @conf
 def SAMBA_CROSS_ARGS(conf, msg=None):
-    '''get exec_args to pass when running cross compiled binaries'''
+    '''get test_args to pass when running cross compiled binaries'''
     if not conf.env.CROSS_COMPILE:
         return []