|
|
|
@ -477,7 +477,7 @@ class DynamicLinker(LinkerEnvVarsMixin, metaclass=abc.ABCMeta): |
|
|
|
|
# Only used by the Apple linker |
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
def get_gui_app_args(self, value: bool) -> T.List[str]: |
|
|
|
|
def get_gui_app_args(self, env: 'Environment', value: bool) -> T.List[str]: |
|
|
|
|
# Only used by VisualStudioLikeLinkers |
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
@ -1154,11 +1154,11 @@ class VisualStudioLikeLinkerMixin: |
|
|
|
|
def get_allow_undefined_args(self) -> T.List[str]: |
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
def get_gui_app_args(self, value: bool) -> T.List[str]: |
|
|
|
|
def get_gui_app_args(self, env: 'Environment', value: bool) -> T.List[str]: |
|
|
|
|
if value: |
|
|
|
|
return self.get_win_subsystem_args("windows") |
|
|
|
|
return self.get_win_subsystem_args(env, "windows") |
|
|
|
|
|
|
|
|
|
return self.get_win_subsystem_args("console") |
|
|
|
|
return self.get_win_subsystem_args(env, "console") |
|
|
|
|
|
|
|
|
|
def get_win_subsystem_args(self, env: 'Environment', value: str) -> T.List[str]: |
|
|
|
|
return self._apply_prefix([f'/SUBSYSTEM:{value.upper()}']) |
|
|
|
|