mirror of
https://github.com/meshtastic/firmware.git
synced 2026-08-01 10:58:30 -04:00
17 lines
465 B
Python
17 lines
465 B
Python
#!/usr/bin/env python3
|
|
# trunk-ignore-all(ruff/F821)
|
|
# trunk-ignore-all(flake8/F821): For SConstruct imports
|
|
#
|
|
# PlatformIO routes build_flags to the compile step only, so the static link
|
|
# flags are appended here, as wasm_link_flags.py does for [env:native-wasm].
|
|
Import("env")
|
|
|
|
if env["PIOENV"].startswith("native-windows"):
|
|
env.Append(
|
|
LINKFLAGS=[
|
|
"-static",
|
|
"-static-libgcc",
|
|
"-static-libstdc++",
|
|
]
|
|
)
|