diff options
Diffstat (limited to 'project/toolset.py')
-rw-r--r-- | project/toolset.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project/toolset.py b/project/toolset.py index f92e536..fc4aa85 100644 --- a/project/toolset.py +++ b/project/toolset.py @@ -27,7 +27,7 @@ import argparse from enum import Enum -class ToolchainType(Enum): +class ToolsetHint(Enum): AUTO = 'auto' # This most commonly means GCC on Linux and MSVC on Windows. MSVC = 'msvc' # Force MSVC. GCC = 'gcc' # Force GCC. @@ -40,11 +40,11 @@ class ToolchainType(Enum): @staticmethod def all(): - return tuple(ToolchainType) + return tuple(ToolsetHint) @staticmethod def parse(s): try: - return ToolchainType(s) + return ToolsetHint(s) except ValueError as e: raise argparse.ArgumentTypeError(f'invalid toolset: {s}') from e |