From faa713fca8b3dd36413f55916b4d29f62a6f7256 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:03:45 +0200 Subject: [PATCH] Update espidf.py --- builder/frameworks/espidf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index f60d354ec..88650324e 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -111,27 +111,33 @@ print("Build Flags", env.subst("$BUILD_FLAGS")) print("Build UnFlags", env.subst("$BUILD_UNFLAGS")) +print("Link flags", env["LINKFLAGS"]) +print("Link flags", env.subst("$LINKFLAGS")) try: print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines()) if env.GetProjectOption("custom_sdkconfig").splitlines(): ORIG_BUILD_FLAGS = env.subst("$BUILD_FLAGS") ORIG_BUILD_UNFLAGS = env.subst("$BUILD_UNFLAGS") + ORIG_LINKFLAGS = env.subst("$LINKFLAGS") ORIG_PROJECT_SRC_DIR = PROJECT_SRC_DIR env.GetProjectOption("build_flags").clear() env.GetProjectOption("build_unflags").clear() + env.GetProjectOption("linkflags").clear() PROJECT_SRC_DIR = PROJECT_SRC_DIR.replace("tasmota", "dummy") env.Replace( PROJECT_SRC_DIR=PROJECT_SRC_DIR, BUILD_FLAGS="", BUILD_UNFLAGS="", + LINKFLAGS="", ) except: pass print("Source Dir", env.subst("$PROJECT_SRC_DIR")) print("Build Flags", env.subst("$BUILD_FLAGS")) print("Build UnFlags", env.subst("$BUILD_UNFLAGS")) - +print("Link flags", env["LINKFLAGS"]) +print("Link flags", env.subst("$LINKFLAGS")) def get_project_lib_includes(env): project = ProjectAsLibBuilder(env, "$PROJECT_DIR")