Merge pull request #354 from minijackson/master

Merged fixes.
pull/280/merge
Jussi Pakkanen 9 years ago
commit 926b55076f
  1. 1
      authors.txt
  2. 2
      ninjabackend.py
  3. 2
      optinterpreter.py

@ -26,3 +26,4 @@ Haakon Sporsheim
Wink Saville Wink Saville
Yoav Alon Yoav Alon
Martin Ejdestig Martin Ejdestig
Rémi Nicole

@ -1740,7 +1740,7 @@ rule FORTRAN_DEP_HACK
gcno_elem.add_item('COMMAND', [sys.executable, clean_script, '.', 'gcno']) gcno_elem.add_item('COMMAND', [sys.executable, clean_script, '.', 'gcno'])
gcno_elem.add_item('description', 'Deleting gcno files') gcno_elem.add_item('description', 'Deleting gcno files')
gcno_elem.write(outfile) gcno_elem.write(outfile)
self.check_outputs(gcno_elem, gcno_elem) self.check_outputs(gcno_elem)
gcda_elem = NinjaBuildElement('clean-gcda', 'CUSTOM_COMMAND', 'PHONY') gcda_elem = NinjaBuildElement('clean-gcda', 'CUSTOM_COMMAND', 'PHONY')
script_root = self.environment.get_script_dir() script_root = self.environment.get_script_dir()

@ -100,7 +100,7 @@ class OptionInterpreter:
elif isinstance(arg, mparser.ArrayNode): elif isinstance(arg, mparser.ArrayNode):
return [self.reduce_single(curarg) for curarg in arg.args.arguments] return [self.reduce_single(curarg) for curarg in arg.args.arguments]
elif isinstance(arg, mparser.NumberNode): elif isinstance(arg, mparser.NumberNode):
return arg.get_value() return arg.value
else: else:
raise OptionException('Arguments may only be string, int, bool, or array of those.') raise OptionException('Arguments may only be string, int, bool, or array of those.')

Loading…
Cancel
Save