don't put needlessly absolute paths in Singeli compile commands

This commit is contained in:
dzaima 2024-12-03 11:03:34 +02:00
parent 81abc80863
commit ed1fe6cc3e

View File

@ -127,12 +127,14 @@ Finish ⇐ { 𝕊 write:
"clangd compile commands" res _doWrite AtRoot "build/compile_commands.json"
}
AtRootRel "../"•file.At
{
singeliState@? @;
dirarch singeliState
cmd0 "-a", arch, "-l", "="AtRoot dir •file.At "include"
cmd0 "-a", arch, "-l", "="AtRootRel dir •file.At "include"
res TLArr { cmdname:
"file""arguments" JObj JStr AtRoot name, ", " JArr JStr¨ cmd0 cmd
"file""arguments" JObj JStr AtRootRel name, ", " JArr JStr¨ cmd0 cmd
}¨ singeliObjects
"Singeli compile commands" res _doWrite AtRoot "build/.singeli_compile_commands.json"
}