diff options
Diffstat (limited to 'scripts/utils.py')
-rw-r--r-- | scripts/utils.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/utils.py b/scripts/utils.py index 8809fc72..4bf6124e 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -40,11 +40,9 @@ TARGET_MAP = { "windows_x64": "windows_msvc-x86_64", "linux": "linux-x86_64", "linux_x64": "linux-x86_64", - "linux_x86_64": "linux-x86_64", - "linux_aarch64": "linux-aarch64", "darwin": "darwin-x86_64", "darwin_x64": "darwin-x86_64", - "darwin_x86_64" : "darwin-x86_64", + "linux_aarch64": "linux-aarch64", "darwin_aarch64": "darwin-aarch64", } @@ -59,7 +57,7 @@ AVAILABLE = { def platform_to_cmake_target(target): """Translates platform to cmake target""" - return TARGET_MAP[target.replace("-","_")] + return TARGET_MAP[target] def cmake_toolchain(target) -> str: @@ -71,7 +69,7 @@ def cmake_toolchain(target) -> str: / "android" / "build" / "cmake" - / AVAILABLE[TARGET_MAP[target.replace("-", "_")]] + / AVAILABLE[TARGET_MAP[target]] ) |