Skip to content

Commit 8cb8807

Browse files
authored
Fix assembler flags (#2255)
An oversight in the order of updating the ASFLAGS with a copy of the CCFLAGS (see line 110) and then updating the CCFLAGS (without resyncing the ASFLAGS) leads to a fatal compilation error in the Adafruit PicoDVI library, in which `tmds_encode.S` fails to find the `pico/config.h` include file. This fix updates the ASFLAGS manually after changing the CCFLAGS so that they're equal again, and the library can be compiled.
1 parent 2cde8bd commit 8cb8807

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/platformio-build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def is_pio_build():
190190
"-iprefix" + os.path.join(FRAMEWORK_DIR),
191191
"@%s" % os.path.join(FRAMEWORK_DIR, "lib", "platform_inc.txt")
192192
])
193-
193+
env.Append(ASFLAGS=[
194+
"-iprefix" + os.path.join(FRAMEWORK_DIR),
195+
"@%s" % os.path.join(FRAMEWORK_DIR, "lib", "platform_inc.txt")
196+
])
194197

195198
def configure_usb_flags(cpp_defines):
196199
if "USE_TINYUSB" in cpp_defines:

0 commit comments

Comments
 (0)