compilers: do accept None in Compiler.compile extra_args

The type information allows it, but it is not actually handled.
pull/9014/head
Paolo Bonzini 3 years ago
parent 63ddb8aafa
commit 2997480ee6
  1. 3
      mesonbuild/compilers/compilers.py

@ -791,7 +791,8 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
# extra_args must be last because it could contain '/link' to # extra_args must be last because it could contain '/link' to
# pass args to VisualStudio's linker. In that case everything # pass args to VisualStudio's linker. In that case everything
# in the command line after '/link' is given to the linker. # in the command line after '/link' is given to the linker.
commands += extra_args if extra_args:
commands += extra_args
# Generate full command-line with the exelist # Generate full command-line with the exelist
command_list = self.get_exelist() + commands.to_native() command_list = self.get_exelist() + commands.to_native()
mlog.debug('Running compile:') mlog.debug('Running compile:')

Loading…
Cancel
Save