Reproduction steps:
- Be on Windows
- Create an empty folder called 'test_project' and run
zig init-exe
- Add the following line to 'build.zig':
exe.setOutputDir("out");
- Run
zig build
- Build claims failure, citing a file could not be found
- Executable has been successfully output into test_project/out
- No PDB file is present in test_project/out
Adding a warn call to std.fs.file.File.openRead suggests that an attempt is made to read from 'test_project/out/test_project.pdb' when it does not exist, causing the FileNotFound error and the build failure message.
build log.txt
Reproduction steps:
zig init-exeexe.setOutputDir("out");zig buildAdding a
warncall to std.fs.file.File.openRead suggests that an attempt is made to read from 'test_project/out/test_project.pdb' when it does not exist, causing the FileNotFound error and the build failure message.build log.txt