Is it possible to compile with slash in path instead of backslash in windows

Hi, I use vscode with pio and when I compile my project in windows, it is compiled with src\file.cpp as the gcc source file, so my “__FILE __” is “src\file.cpp”. Is it possible to have pio compile the source files as “src/file.cpp”? How does pio determine to use “” instead of “/” as the separator and is it possible to change that?

Thanks.