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 26
26
import json
27
27
import semantic_version
28
28
import os
29
+ import sys
29
30
import shutil
30
31
from os .path import join
31
32
44
45
board_sdkconfig = board .get ("espidf.custom_sdkconfig" , "" )
45
46
entry_custom_sdkconfig = "\n "
46
47
flag_custom_sdkconfig = False
48
+ IS_WINDOWS = sys .platform .startswith ("win" )
47
49
48
50
if config .has_option ("env:" + env ["PIOENV" ], "custom_sdkconfig" ):
49
51
entry_custom_sdkconfig = env .GetProjectOption ("custom_sdkconfig" )
@@ -248,7 +250,8 @@ def call_compile_libs():
248
250
call_compile_libs ()
249
251
250
252
if "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 )
252
255
if os .path .exists (join (platform .get_package_dir (
253
256
"framework-arduinoespressif32" ), "tools" , "platformio-build.py" )):
254
257
PIO_BUILD = "platformio-build.py"
You can’t perform that action at this time.
0 commit comments