4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-04 09:19:38 +00:00

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

@ -97,7 +97,7 @@ class BaseModule:
return 'make' return 'make'
def makeTarget(self, target, cxxFlags=[]): def makeTarget(self, target, cxxFlags=None):
command = [self.make()] command = [self.make()]
return command + [target] return command + [target]

@ -15,7 +15,7 @@ class CMake(Make):
def makePrefix(self): def makePrefix(self):
return "C" return "C"
def makeTarget(self, target, cxxFlags=[]): def makeTarget(self, target, cxxFlags=None):
command = 'cmake --build cmake_build --config Release' command = 'cmake --build cmake_build --config Release'
if len(target): if len(target):
@ -25,7 +25,9 @@ class CMake(Make):
if cpus: if cpus:
command += ' --parallel ' + str(cpus) command += ' --parallel ' + str(cpus)
cxx = cxxFlags cxx = []
if cxxFlags is not None:
cxx += cxxFlags
if self.isiOS(''): if self.isiOS(''):
cxx += ['-allowProvisioningUpdates'] cxx += ['-allowProvisioningUpdates']