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