File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 27
27
import json
28
28
import semantic_version
29
29
import os
30
+ import sys
30
31
import shutil
31
32
from os .path import join
32
33
45
46
board_sdkconfig = board .get ("espidf.custom_sdkconfig" , "" )
46
47
entry_custom_sdkconfig = "\n "
47
48
flag_custom_sdkconfig = False
49
+ IS_WINDOWS = sys .platform .startswith ("win" )
48
50
49
51
if config .has_option ("env:" + env ["PIOENV" ], "custom_sdkconfig" ):
50
52
entry_custom_sdkconfig = env .GetProjectOption ("custom_sdkconfig" )
@@ -256,7 +258,8 @@ def shorthen_includes(env, node):
256
258
call_compile_libs ()
257
259
258
260
if "arduino" in env .subst ("$PIOFRAMEWORK" ) and "espidf" not in env .subst ("$PIOFRAMEWORK" ) and env .subst ("$ARDUINO_LIB_COMPILE_FLAG" ) in ("Inactive" , "True" ):
259
- env .AddBuildMiddleware (shorthen_includes )
261
+ if IS_WINDOWS :
262
+ env .AddBuildMiddleware (shorthen_includes )
260
263
if os .path .exists (join (FRAMEWORK_DIR , "tools" , "platformio-build.py" )):
261
264
PIO_BUILD = "platformio-build.py"
262
265
else :
You can’t perform that action at this time.
0 commit comments