2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-23 01:35:08 +01:00

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 <tnagy2pow10@gmail.com>
This commit is contained in:
andreww 2012-04-16 09:51:33 +01:00 committed by Thomas Nagy
parent 30097510a8
commit 7515dab30e

View File

@ -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: