aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4d70d86..d37e805 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2345,8 +2345,9 @@ int main(int argc, char **argv) {
shared_suffix = 'so'
return (cc, stlinker, object_suffix, shared_suffix)
- def pbcompile(self, compiler, source, objectfile, extra_args=[]):
+ def pbcompile(self, compiler, source, objectfile, extra_args=None):
cmd = compiler.get_exelist()
+ extra_args = extra_args or []
if compiler.get_argument_syntax() == 'msvc':
cmd += ['/nologo', '/Fo' + objectfile, '/c', source] + extra_args
else: