I cannot find any documentation about how paths should be specified: absolute or relative. The problem och mixing absolute and relative paths is not just in the build.ninja file, but also from the include header parsing in both the gcc and msvc case. Also, specifying a target output as relative in one rule and absolute in another will get through ninja even if the wanted behaviour is to abort.
What should be output from my generator into the build.ninja file, relative or absolute paths?
How to handle source files on other drives in Windows?
Why doesn't ninja just make absolute path for every file path?
The deps files may contain a mixture of relative and absolut paths. How to handle?
The attachment has test cases that show the specific problems.
Best regards,
Fredrik