diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 13:02:51 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 13:02:51 +0200 |
| commit | 64899879b001d08efd5b62b97daa85d5c825c1ee (patch) | |
| tree | 2cffff91f869ea9b3182961c2d3f9d859090275c /project/platform.py | |
| parent | workflows: add Python black run (diff) | |
| download | cmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.tar.gz cmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.zip | |
reformat everything for fun
Diffstat (limited to 'project/platform.py')
| -rw-r--r-- | project/platform.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/project/platform.py b/project/platform.py index fa0a7d3..39ec91b 100644 --- a/project/platform.py +++ b/project/platform.py @@ -68,7 +68,9 @@ class Platform(Enum): # On Windows, use the host architecture. return Platform.windows_native().address_model() # On Linux, assume that the target is x64. - raise RuntimeError('cannot determine address model unless the target platform is specified explicitly') + raise RuntimeError( + 'cannot determine address model unless the target platform is specified explicitly' + ) if self is Platform.X86: return 32 if self is Platform.X64: @@ -129,7 +131,9 @@ set(CMAKE_CXX_FLAGS -m{address_model}) return Platform.windows_native().msvc_arch() # I don't think the -A argument is supported on any generators # except the Visual Studio ones. - raise RuntimeError('-A parameter is only supported for Visual Studio generators') + raise RuntimeError( + '-A parameter is only supported for Visual Studio generators' + ) if self is Platform.X86: return 'Win32' if self is Platform.X64: |
