aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-05-02 23:30:29 +0300
committerGitHub <noreply@github.com>2019-05-02 23:30:29 +0300
commit1f4023fa47803458700e52352dec51f3f85fa6c1 (patch)
treee4b2790ff92404ad6f939832922770b9a359908e /mesonbuild/backend/backends.py
parent06bfc2dab61c5bf79265a8db777b02732ee86ecf (diff)
parent74b535fea74843c83944e9f22d40e6259ca105b8 (diff)
downloadmeson-1f4023fa47803458700e52352dec51f3f85fa6c1.zip
meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.gz
meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.bz2
Merge pull request #5311 from mensinda/flake8Plugins
Added flake8 plugins and some code fixes
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index e40bcbc..d0b4bb5 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -322,12 +322,14 @@ class Backend:
raise MesonException('Unknown data type in object list.')
return obj_list
- def serialize_executable(self, tname, exe, cmd_args, workdir, env={},
+ def serialize_executable(self, tname, exe, cmd_args, workdir, env=None,
extra_paths=None, capture=None):
'''
Serialize an executable for running with a generator or a custom target
'''
import hashlib
+ if env is None:
+ env = {}
if extra_paths is None:
# The callee didn't check if we needed extra paths, so check it here
if mesonlib.is_windows() or mesonlib.is_cygwin():