Skip to content

Makefile generation/test compile no longer works #657

@maxim-zhao

Description

@maxim-zhao

Moving from an older build onto newer WLA DX, I found:

  1. At some point, it became necessary to add -t in addition to -M to make it not fail if a file is not found for an .incbin directive. (In makefile generation mode, the goal is to instruct make as to which files are missing so it can produce them, so they are expected to be missing.)
  2. The latest code fails even with this flag.

Example code:

.rombankmap
bankstotal 1
banksize $4000
banks 1
.endro

.incbin "file_not_found.bin"

Run:

wla-z80 -t -M -MF test.makefile -o test.o test.asm

Get:

test.asm:7: FIND_FILE: Could not open "file_not_found.bin", searched in the following directories:
./ (current directory)
test.asm:7: ERROR: Couldn't parse ".incbin".

Adding -c doesn't make it continue after this error. I didn't bisect when these changes happened yet...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions