From 6d1b3925e45b6795a84e260b708838491a477515 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 17 Jun 2023 14:16:01 +0800 Subject: [PATCH] fix disable ccache --- Difficult_Rocket/utils/options.py | 17 +++++++++-------- libs/utils/nuitka.py | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Difficult_Rocket/utils/options.py b/Difficult_Rocket/utils/options.py index 2b651ab..46c29e6 100644 --- a/Difficult_Rocket/utils/options.py +++ b/Difficult_Rocket/utils/options.py @@ -4,19 +4,20 @@ # All rights reserved # ------------------------------- -import warnings import traceback from io import StringIO from dataclasses import dataclass from typing import get_type_hints, Type, List, Union, Dict, Any, Callable, Tuple, Optional, TYPE_CHECKING, Iterable -__all__ = ['get_type_hints_', - 'Options', - 'Fonts', - 'FontData', - 'OptionsError', - 'OptionNotFound', - 'OptionNameNotDefined'] +__all__ = [ + 'get_type_hints_', + 'Options', + 'OptionsError', + 'OptionNotFound', + 'OptionNameNotDefined', + 'Fonts', + 'FontData' +] def get_type_hints_(cls: Type): diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 52edda0..0cbe3b4 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -108,7 +108,7 @@ class CompilerHelper(Options): _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, '--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-memory' if self.show_memory else None) _add_cmd(cmd_list, '--assume-yes-for-download' if self.download_confirm else None)