buildtools/wafsamba: use context instead of options for cross-compile checks for...
[bbaumbach/samba.git] / buildtools / wafsamba / samba_cross.py
index b4643c037d97f108e95a37f9ea330ad1acda1941..eee31179fed110eaf366de92e9d84a6f7bfde93b 100644 (file)
@@ -1,7 +1,7 @@
 # functions for handling cross-compilation
 
 import os, sys, re, shlex
-from waflib import Utils, Logs, Options, Errors
+from waflib import Utils, Logs, Options, Errors, Context
 from waflib.Configure import conf
 
 real_Popen = None
@@ -155,7 +155,7 @@ def SAMBA_CROSS_ARGS(conf, msg=None):
     if conf.env.CROSS_ANSWERS:
         if msg is None:
             raise Errors.WafError("Cannot have NULL msg in cross-answers")
-        ret.extend(['--cross-answers', os.path.join(Options.launch_dir, conf.env.CROSS_ANSWERS), msg])
+        ret.extend(['--cross-answers', os.path.join(Context.launch_dir, conf.env.CROSS_ANSWERS), msg])
 
     if ret == []:
         raise Errors.WafError("Cannot cross-compile without either --cross-execute or --cross-answers")