Allow reading some build system flags as environment variables
This commit is contained in:
parent
87ab1bbe54
commit
3335f8602b
8
setup.py
8
setup.py
@ -63,11 +63,11 @@ class Options(argparse.Namespace):
|
|||||||
for_freeze: bool = False
|
for_freeze: bool = False
|
||||||
libdir_name: str = 'lib'
|
libdir_name: str = 'lib'
|
||||||
extra_logging: List[str] = []
|
extra_logging: List[str] = []
|
||||||
link_time_optimization: bool = True
|
link_time_optimization: bool = 'KITTY_NO_LTO' not in os.environ
|
||||||
update_check_interval: float = 24
|
update_check_interval: float = 24
|
||||||
egl_library: Optional[str] = None
|
egl_library: Optional[str] = os.getenv('KITTY_EGL_LIBRARY')
|
||||||
startup_notification_library: Optional[str] = None
|
startup_notification_library: Optional[str] = os.getenv('KITTY_STARTUP_NOTIFICATION_LIBRARY')
|
||||||
canberra_library: Optional[str] = None
|
canberra_library: Optional[str] = os.getenv('KITTY_CANBERRA_LIBRARY')
|
||||||
|
|
||||||
|
|
||||||
class CompileKey(NamedTuple):
|
class CompileKey(NamedTuple):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user