diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-22 12:14:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-09-07 13:37:37 +0200 |
commit | 2997480ee6eb2e603b092913d50c6de7a5bc813f (patch) | |
tree | efca10c06cc77c13451265afd6ab652b636a9ffb | |
parent | 63ddb8aafa8b26e44115abd1e9d1856348fd6461 (diff) | |
download | meson-2997480ee6eb2e603b092913d50c6de7a5bc813f.zip meson-2997480ee6eb2e603b092913d50c6de7a5bc813f.tar.gz meson-2997480ee6eb2e603b092913d50c6de7a5bc813f.tar.bz2 |
compilers: do accept None in Compiler.compile extra_args
The type information allows it, but it is not actually handled.
-rw-r--r-- | mesonbuild/compilers/compilers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 630274d..157d2a8 100644 --- a/mesonbuild/compilers/compilers.py +++ b/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 # pass args to VisualStudio's linker. In that case everything # 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 command_list = self.get_exelist() + commands.to_native() mlog.debug('Running compile:') |