diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-14 00:50:23 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-14 00:55:36 +0300 |
commit | 33a7a6afdd2435cfa108e59e9912a4bf8932daa3 (patch) | |
tree | fa00e2a14d92f1e3d46943b691044e8e291b85d1 /ci | |
parent | boost/build.py: get rid of --toolchain (diff) | |
download | cmake-common-33a7a6afdd2435cfa108e59e9912a4bf8932daa3.tar.gz cmake-common-33a7a6afdd2435cfa108e59e9912a4bf8932daa3.zip |
boost/build.py: don't lowercase platform/configuration
Diffstat (limited to '')
-rwxr-xr-x | ci/boost/build.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ci/boost/build.py b/ci/boost/build.py index 18755fb..ce33389 100755 --- a/ci/boost/build.py +++ b/ci/boost/build.py @@ -51,7 +51,7 @@ def _run_executable(cmd_line): class Platform(Enum): X86 = 'x86' X64 = 'x64' - WIN32 = 'win32' + WIN32 = 'Win32' def __str__(self): return self.value @@ -72,14 +72,14 @@ class Platform(Enum): def _parse_platform(s): try: - return Platform(s.lower()) + return Platform(s) except ValueError: raise argparse.ArgumentTypeError(f'invalid platform: {s}') class Configuration(Enum): - DEBUG = 'debug' - RELEASE = 'release' + DEBUG = 'Debug' + RELEASE = 'Release' @staticmethod def all(): @@ -91,7 +91,7 @@ class Configuration(Enum): def _parse_configuration(s): try: - return Configuration(s.lower()) + return Configuration(s) except ValueError: raise argparse.ArgumentTypeError(f'invalid configuration: {s}') @@ -292,12 +292,12 @@ class BoostBuild: @staticmethod def _windows_variant(configurations): - variant = ','.join(map(str, configurations)) + variant = ','.join((str(config).lower() for config in configurations)) return f'variant={variant}' @staticmethod def _unix_variant(configuration): - return f'variant={configuration}' + return f'variant={str(configuration).lower()}' def _parse_args(argv=None): |