Fixed an issue with debugging assembly files without preprocessor (".s")

This commit is contained in:
Ivan Kravets
2022-05-25 19:23:24 +03:00
parent 87f2e86928
commit 5f812409d4
3 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,7 @@ PlatformIO Core 6
* Control |UNITTESTING| verbosity with a new multilevel `pio test -v <https://docs.platformio.org/en/latest/core/userguide/cmd_test.html#cmdoption-pio-test-v>`__ command option (`issue #4276 <https://github.com/platformio/platformio-core/issues/4276>`_)
* Fixed an issue when the `build_src_flags <https://docs.platformio.org/en/latest/projectconf/section_env_build.html#build-src-flags>`__ option was applied outside the project scope (`issue #4277 <https://github.com/platformio/platformio-core/issues/4277>`_)
* Fixed an issue with debugging assembly files without preprocessor (".s")
6.0.1 (2022-05-17)
~~~~~~~~~~~~~~~~~~

2
docs

Submodule docs updated: 5c3659ac2f...17a3f640ac

View File

@ -114,7 +114,15 @@ def ConfigureDebugTarget(env):
]
if optimization_flags:
env.AppendUnique(ASFLAGS=optimization_flags, LINKFLAGS=optimization_flags)
env.AppendUnique(
ASFLAGS=[
# skip -O flags for assembler
f
for f in optimization_flags
if f.startswith("-g")
],
LINKFLAGS=optimization_flags,
)
def GetExtraScripts(env, scope):