From 3b9f3c29d0c62d802461e5074c39a2da8a98c841 Mon Sep 17 00:00:00 2001
From: EndrII <EndrIIMail@gmail.com>
Date: Sat, 22 Jan 2022 00:12:29 +0300
Subject: [PATCH] use none instand []

---
 BuildBotLib/basemodule.py | 2 +-
 BuildBotLib/cmake.py      | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/BuildBotLib/basemodule.py b/BuildBotLib/basemodule.py
index fe39a9c..0ad0a72 100644
--- a/BuildBotLib/basemodule.py
+++ b/BuildBotLib/basemodule.py
@@ -97,7 +97,7 @@ class BaseModule:
 
         return 'make'
 
-    def makeTarget(self, target, cxxFlags=[]):
+    def makeTarget(self, target, cxxFlags=None):
         command = [self.make()]
         return command + [target]
 
diff --git a/BuildBotLib/cmake.py b/BuildBotLib/cmake.py
index 1871584..d2c0c5c 100644
--- a/BuildBotLib/cmake.py
+++ b/BuildBotLib/cmake.py
@@ -15,7 +15,7 @@ class CMake(Make):
     def makePrefix(self):
         return "C"
 
-    def makeTarget(self, target, cxxFlags=[]):
+    def makeTarget(self, target, cxxFlags=None):
         command = 'cmake --build cmake_build --config Release'
 
         if len(target):
@@ -25,7 +25,9 @@ class CMake(Make):
             if cpus:
                 command += ' --parallel ' + str(cpus)
 
-        cxx = cxxFlags
+        cxx = []
+        if cxxFlags is not None:
+            cxx += cxxFlags
 
         if self.isiOS(''):
             cxx += ['-allowProvisioningUpdates']