From 7515dab30e7eb25de3cf174c02b0f4b00cea19ad Mon Sep 17 00:00:00 2001 From: andreww Date: Mon, 16 Apr 2012 09:51:33 +0100 Subject: [PATCH] Add 'platform' argument for C# tasks. Set the 'platform' argument on C# a task generator to select the '/platform' option to pass to the compiler. Defaults to 'anycpu'. Signed-off-by: Thomas Nagy --- waflib/Tools/cs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/waflib/Tools/cs.py b/waflib/Tools/cs.py index 4a615d80..f3827f69 100644 --- a/waflib/Tools/cs.py +++ b/waflib/Tools/cs.py @@ -48,6 +48,7 @@ def apply_cs(self): self.cs_task = tsk = self.create_task('mcs', cs_nodes, self.path.find_or_declare(self.gen)) tsk.env.CSTYPE = '/target:%s' % bintype tsk.env.OUT = '/out:%s' % tsk.outputs[0].abspath() + tsk.env.append_value('CSFLAGS', '/platform:%s' % getattr(self, 'platform', 'anycpu')) inst_to = getattr(self, 'install_path', bintype=='exe' and '${BINDIR}' or '${LIBDIR}') if inst_to: