disable default contrictor for argument because python use the static object.

This commit is contained in:
Andrei Yankovich 2022-01-22 00:28:25 +03:00
parent 28ee64dd92
commit feed1b305f
2 changed files with 5 additions and 3 deletions

View File

@ -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]

View File

@ -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']