Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#include cant find paths with a starting "/" #215

Closed
tommyisfunny opened this issue Jan 20, 2025 · 0 comments
Closed

#include cant find paths with a starting "/" #215

tommyisfunny opened this issue Jan 20, 2025 · 0 comments
Labels

Comments

@tommyisfunny
Copy link

When including a file with #include which starts with a "/", customasm seems to leave the "/" out when searching for that file.
I came across this when trying to pass a absolute path on Linux as my source file.

for Example:
test.asm:

#include "test2.asm"

LDI 1 23
LDI 3 44 
HLT

then call customasm:
customasm '/home/name/Documents/test.asm'

will give this error:

customasm v0.13.7 (x86_64-unknown-linux-gnu)
assembling `/home/name/Documents/test.asm`...
error: file not found: `home/name/Documents/test2.asm`
 --> /home/name/Documents/test.asm:1:10:
1 | #include "test2.asm" 
  |          ^^^^^^^^^^^  
2 |  
3 | LDI 1 23 
@hlorenzi hlorenzi added the bug label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants