mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
13 lines
375 B
Plaintext
13 lines
375 B
Plaintext
# pylint: disable=E0602
|
|
Import("env") # noqa
|
|
|
|
# Workaround whole archive issue
|
|
if "__LIB_DEPS" in env and "libespressif__esp_hosted.a" in env["__LIB_DEPS"]:
|
|
env.Append(
|
|
LINKFLAGS=[
|
|
"-Wl,--whole-archive",
|
|
env["BUILD_DIR"] + "/esp-idf/espressif__esp_hosted/libespressif__esp_hosted.a",
|
|
"-Wl,--no-whole-archive",
|
|
]
|
|
)
|