File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626import json
2727import semantic_version
2828import os
29+ import sys
2930import shutil
3031from os .path import join
3132
4445board_sdkconfig = board .get ("espidf.custom_sdkconfig" , "" )
4546entry_custom_sdkconfig = "\n "
4647flag_custom_sdkconfig = False
48+ IS_WINDOWS = sys .platform .startswith ("win" )
4749
4850if config .has_option ("env:" + env ["PIOENV" ], "custom_sdkconfig" ):
4951 entry_custom_sdkconfig = env .GetProjectOption ("custom_sdkconfig" )
@@ -248,7 +250,8 @@ def call_compile_libs():
248250 call_compile_libs ()
249251
250252if "arduino" in env .subst ("$PIOFRAMEWORK" ) and "espidf" not in env .subst ("$PIOFRAMEWORK" ) and env .subst ("$ARDUINO_LIB_COMPILE_FLAG" ) in ("Inactive" , "True" ):
251- env .AddBuildMiddleware (shorthen_includes )
253+ if IS_WINDOWS :
254+ env .AddBuildMiddleware (shorthen_includes )
252255 if os .path .exists (join (platform .get_package_dir (
253256 "framework-arduinoespressif32" ), "tools" , "platformio-build.py" )):
254257 PIO_BUILD = "platformio-build.py"
You can’t perform that action at this time.
0 commit comments