mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 02:54:25 +02:00
allow manual override of system type (#4952)
* allow manual override of system type https://community.platformio.org/t/windows-on-arm64-problem-installing-xtensa-toolchain/25497 * fix lint
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import functools
|
import functools
|
||||||
import math
|
import math
|
||||||
|
import os
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
@@ -136,6 +137,11 @@ def singleton(cls):
|
|||||||
|
|
||||||
|
|
||||||
def get_systype():
|
def get_systype():
|
||||||
|
# allow manual override, eg. for
|
||||||
|
# windows on arm64 systems with emulated x86
|
||||||
|
if "PLATFORMIO_SYSTEM_TYPE" in os.environ:
|
||||||
|
return os.environ.get("PLATFORMIO_SYSTEM_TYPE")
|
||||||
|
|
||||||
system = platform.system().lower()
|
system = platform.system().lower()
|
||||||
arch = platform.machine().lower()
|
arch = platform.machine().lower()
|
||||||
if system == "windows":
|
if system == "windows":
|
||||||
|
Reference in New Issue
Block a user