diff --git a/platform.py b/platform.py index ce05301..6ff8575 100644 --- a/platform.py +++ b/platform.py @@ -12,8 +12,17 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os +import sys + from platformio.public import PlatformBase +IS_WINDOWS = sys.platform.startswith("win") +# Set Platformio env var to use windows_amd64 for all windows architectures +# only windows_amd64 native espressif toolchains are available +# needs platformio core >= 6.1.16b2 or pioarduino core 6.1.16+test +if IS_WINDOWS: + os.environ["PLATFORMIO_SYSTEM_TYPE"] = "windows_amd64" class Espressif8266Platform(PlatformBase):