Merge branch 'non-mutable_default_argument' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
adbc694ff8
1 changed files with 3 additions and 4 deletions
7
setup.py
7
setup.py
|
|
@ -177,8 +177,8 @@ def first_successful_compile(cc, *cflags, src=None):
|
|||
|
||||
class Env:
|
||||
|
||||
def __init__(self, cc, cppflags, cflags, ldflags, ldpaths=[]):
|
||||
self.cc, self.cppflags, self.cflags, self.ldflags, self.ldpaths = cc, cppflags, cflags, ldflags, ldpaths
|
||||
def __init__(self, cc, cppflags, cflags, ldflags, ldpaths=None):
|
||||
self.cc, self.cppflags, self.cflags, self.ldflags, self.ldpaths = cc, cppflags, cflags, ldflags, [] if ldpaths is None else ldpaths
|
||||
|
||||
def copy(self):
|
||||
return Env(self.cc, list(self.cppflags), list(self.cflags), list(self.ldflags), list(self.ldpaths))
|
||||
|
|
@ -242,8 +242,7 @@ def init_env(
|
|||
cppflags.append('-DWITH_PROFILER')
|
||||
cflags.append('-g3')
|
||||
ldflags.append('-lprofiler')
|
||||
ldpaths = []
|
||||
return Env(cc, cppflags, cflags, ldflags, ldpaths=ldpaths)
|
||||
return Env(cc, cppflags, cflags, ldflags)
|
||||
|
||||
|
||||
def kitty_env():
|
||||
|
|
|
|||
Loading…
Reference in a new issue