Skip to content

build ninja producing nonsense #92

@wbovela

Description

@wbovela

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.

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