Grab and use extra flags.

pull/15/head
Jussi Pakkanen 11 years ago
parent 9acc769958
commit 94ab24cda7
  1. 12
      backends.py

@ -1358,6 +1358,18 @@ class Vs2010Backend(Backend):
opt = ET.SubElement(clconf, 'Optimization')
opt.text = 'disabled'
inc_dirs = [proj_to_src_dir, self.get_target_private_dir(target)]
extra_args = []
# SUCKS, VS can not handle per-language type flags, so just use
# them all.
for l in self.build.global_args.values():
for a in l:
extra_args.append(a)
for l in target.extra_args.values():
for a in l:
extra_args.append(a)
if len(extra_args) > 0:
extra_args.append('%(AdditionalOptions)')
ET.SubElement(clconf, "AdditionalOptions").text = ' '.join(extra_args)
for d in target.include_dirs:
for i in d.incdirs:
curdir = os.path.join(d.curdir, i)

Loading…
Cancel
Save