We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f33de21 commit e374158Copy full SHA for e374158
builder/frameworks/arduino.py
@@ -936,7 +936,9 @@ def get_frameworks_in_current_env():
936
env.AddPostAction("checkprogsize", silent_action)
937
938
if IS_WINDOWS:
939
- env.AddBuildMiddleware(smart_include_length_shorten)
+ if not env.get("__PIO_BUILD_MIDDLEWARES"):
940
+ env["__PIO_BUILD_MIDDLEWARES"] = []
941
+ env["__PIO_BUILD_MIDDLEWARES"].append(env.AddBuildMiddleware(smart_include_length_shorten))
942
943
build_script_path = str(Path(FRAMEWORK_DIR) / "tools" / "pioarduino-build.py")
944
SConscript(build_script_path)
0 commit comments