forked from platformio/platformio-core
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 functools
|
||||
import math
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
@ -136,6 +137,11 @@ def singleton(cls):
|
||||
|
||||
|
||||
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()
|
||||
arch = platform.machine().lower()
|
||||
if system == "windows":
|
||||
|
Reference in New Issue
Block a user