Skip to content

feat: add flag "output file"#137

Merged
Fubukimaru merged 10 commits into
masterfrom
iss132
Nov 17, 2024
Merged

feat: add flag "output file"#137
Fubukimaru merged 10 commits into
masterfrom
iss132

Conversation

@Fubukimaru

Copy link
Copy Markdown
Owner

We now have a -o flag for the output. You can:

  • Modify your file output (like what happens using .FILENAME)
  • Put the output in a folder
  • Both

Closes #132

@duhow duhow self-requested a review November 17, 2024 11:54
Comment thread src/dura.y Outdated
Comment thread src/dura.y Outdated
Comment thread test/features/program.feature
Comment thread test/steps/build.py Outdated
Comment thread test/steps/build.py Outdated
@duhow duhow changed the title Iss132 - Added -o flag feat: add flag "output file" Nov 17, 2024
Fubukimaru and others added 3 commits November 17, 2024 14:11
La pitón

Co-authored-by: David Girón <contacto@duhowpi.net>
chore: Syntax help message clearer.

Co-authored-by: David Girón <contacto@duhowpi.net>
chore: cleaned code comment.

Co-authored-by: David Girón <contacto@duhowpi.net>
Comment thread test/steps/build.py Outdated
Fubukimaru and others added 2 commits November 17, 2024 14:25
feat: Tests now use flag as the whole flags to be sent. With this the testing is more flexible.

Co-authored-by: David Girón <contacto@duhowpi.net>
Comment thread test/steps/build.py Outdated
@Fubukimaru Fubukimaru merged commit 194e3c5 into master Nov 17, 2024
@Fubukimaru Fubukimaru deleted the iss132 branch November 17, 2024 21:28
@jksigtermans

Copy link
Copy Markdown

Output file flag not functioning as expected on Ubuntu x86_64 (asmsx-linux-x86_64).
Using:
asmsx src/main.asm -o build/main.rom

Output:

Building MSX ROM...

asMSX v1.2.0 MSX cross-assembler. asMSX Team. [2026-02-26]

Redefining output name (Overrides .FILENAME): /home/fozzie/Tmp/openmsx-project/build/main.rom
Using custom output path: /home/fozzie/Tmp/openmsx-project/build/main.rom
Fatal: cannot open /home/fozzie/Tmp/openmsx-project/build/main.rom

strace -e openat asmsx src/main.asm -o build/main.rom
...Results in:
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3

@duhow

duhow commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Does the folder build exist and has permission to write?

@jksigtermans

Copy link
Copy Markdown

The folder exists, the permissions are: drwxrwxr-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom output file

3 participants