build ninja producing nonsense
I have a simple CC65 project and VS64 2.6.1 with two source files sprites.s and sprites.c
The build.ninja file keeps generating this line:
build h$:\dev\cc65\projects\Sprites\build\sprites.o: asm h:\dev\cc65\projects\Sprites\sprites.sh:\dev\cc65\projects\Sprites\build\sprites.s
in which the assembly file name is repeated and the h:\ drive designation misses the $ sign (h$:)
And during the build there is this error: ninja: error: h:\dev\cc65\projects\Sprites\build\build.ninja:53: expected newline, got ':' build h$:\dev\cc65\projects\Sprites\build\sprites.o: asm h:\dev\cc65\pro... ^ near here
Where the "^ near here" points to the colon in the "asm h:" string.
These are my compile_commands.json: [ { "directory": "h:/dev/cc65/projects/Sprites", "file": "h:/dev/cc65/projects/Sprites/sprites.c", "arguments": [ "H:/dev/cc65/bin/cc65.exe", "-DDEBUG", "-D__cc65__", "-D__fastcall__=/**/", "-D__C64__", "-Ih:/dev/cc65/projects/Sprites", "-IH:/dev/cc65/include", "-IH:/dev/cc65/include" ] } ]
This is my project-config.json:
{
"name": "Sprites",
"description": "Project Sprites",
"toolkit": "cc65",
"sources": [
"sprites.c",
"sprites.s"
],
"build": "debug",
"definitions": [],
"includes": [],
"args": [],
"compiler": "",
"linkerFlags": [
"-m",
"sprites.map"
]
}
I have recreated the CC65 project with the VS Code command pallette, but the result is the same.
I think where this goes wrong is the following. Additional to everything I have a Makefile which I have used to compare results. This writes assembly output to the folder's root, instead of in the ./src folder.
It seems like everything works fine when I use the VS64 Create Project command from an empty folder, before I put any code in the folder (I thought it would be fine to do so). When I start in an empty folder and then add source files to the ./src folder alone, everything seems fine.
Perhaps add something about this to the instructions.