fix disable ccache

This commit is contained in:
shenjack 2023-06-17 14:16:01 +08:00
parent 76e58676de
commit 6d1b3925e4
2 changed files with 10 additions and 9 deletions

View File

@ -4,19 +4,20 @@
# All rights reserved # All rights reserved
# ------------------------------- # -------------------------------
import warnings
import traceback import traceback
from io import StringIO from io import StringIO
from dataclasses import dataclass from dataclasses import dataclass
from typing import get_type_hints, Type, List, Union, Dict, Any, Callable, Tuple, Optional, TYPE_CHECKING, Iterable from typing import get_type_hints, Type, List, Union, Dict, Any, Callable, Tuple, Optional, TYPE_CHECKING, Iterable
__all__ = ['get_type_hints_', __all__ = [
'Options', 'get_type_hints_',
'Fonts', 'Options',
'FontData', 'OptionsError',
'OptionsError', 'OptionNotFound',
'OptionNotFound', 'OptionNameNotDefined',
'OptionNameNotDefined'] 'Fonts',
'FontData'
]
def get_type_hints_(cls: Type): def get_type_hints_(cls: Type):

View File

@ -108,7 +108,7 @@ class CompilerHelper(Options):
_add_cmd(cmd_list, '--mingw64' if self.use_mingw else None) _add_cmd(cmd_list, '--mingw64' if self.use_mingw else None)
_add_cmd(cmd_list, '--standalone' if self.standalone else None) _add_cmd(cmd_list, '--standalone' if self.standalone else None)
_add_cmd(cmd_list, '--disable-ccache' if self.use_ccache else None) _add_cmd(cmd_list, '--disable-ccache' if not self.use_ccache else None)
_add_cmd(cmd_list, '--show-progress' if self.show_progress else None) _add_cmd(cmd_list, '--show-progress' if self.show_progress else None)
_add_cmd(cmd_list, '--show-memory' if self.show_memory else None) _add_cmd(cmd_list, '--show-memory' if self.show_memory else None)
_add_cmd(cmd_list, '--assume-yes-for-download' if self.download_confirm else None) _add_cmd(cmd_list, '--assume-yes-for-download' if self.download_confirm else None)