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 67b3c8f commit 40f4fdfCopy full SHA for 40f4fdf
tools/platformio-build.py
@@ -295,10 +295,11 @@ def configure_network_flags():
295
os.path.join(FRAMEWORK_DIR, "variants", variant)
296
])
297
298
- libs.append(
299
- env.BuildLibrary(
300
- os.path.join("$BUILD_DIR", "FrameworkArduinoVariant"),
301
- os.path.join(FRAMEWORK_DIR, "variants", variant)))
+ # link variant's source files as object files into the binary.
+ # otherwise weak function overriding won't work in the linking stage.
+ env.BuildSources(
+ os.path.join("$BUILD_DIR", "FrameworkArduinoVariant"),
302
+ os.path.join(FRAMEWORK_DIR, "variants", variant))
303
304
libs.append(
305
env.BuildLibrary(
0 commit comments