aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/toolset.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-06 23:49:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-06 23:49:46 +0300
commitaddd6ff33184614c6ad191436d34ea7528b17878 (patch)
tree34a8efb72bfb266f9ab47d65522883eaac6e70a6 /project/toolset.py
parent"toolchain" -> "toolset", part 1 (diff)
downloadcmake-common-addd6ff33184614c6ad191436d34ea7528b17878.tar.gz
cmake-common-addd6ff33184614c6ad191436d34ea7528b17878.zip
"toolchain" -> "toolset", part 2
Diffstat (limited to 'project/toolset.py')
-rw-r--r--project/toolset.py6
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