You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to compile project with glfw library, no matter if static or shared, in release configuration it will always end up with error: error C1041: cannot open program database *path* if multiple CL.EXE write to the same .PDB file, please use /FS. This obviously breaks the build and that's it. I've played around in VS22 IDE trying to change settings and the cause was/is Debug Information Format. If it's set to None the build breaks. But if it's set to anything else it's ok.
I've tried to build the same config through regular cmake without meson and it works just fine no matter the option.
The only way I've been able to build it with meson is by passing --debug option to meson setup command (or configure), which will set the mentioned setting to Program database \Zi which is what I tried manually at first and it started working. I would be very suspicious of glfw itself but since cmake had no issue I'm not so sure anymore.
I haven't been able to figure out WHY, but I'm hoping this will lead someone else to the real solution.
Then just simple meson setup . vsbuild --backend=vs --buildtype=release followed by meson compile -C vsbuild -j 16. Those are my exact commands. Altering the first one like this: meson setup . vsbuild --backend=vs --buildtype=release --debug solves the issue.
I've tested it with vs and ninja and unfortunately it happens only with vs backend, but I have to use it as I'm using c++20 modules and ninja is not able to handle them (yet).
Expected behavior
In debug mode or with .pdb generation allowed it works fine. I would expect the same behavior in release as well.
system parameters
Native build
Windows 10
3.12
1.6.1
The text was updated successfully, but these errors were encountered:
Just wanted to add that the same thing happens in debug build as well. Debug Information Format is deciding if it works or not. If it's set to None then no build is happening.
Describe the bug
When trying to compile project with
glfw
library, no matter if static or shared, in release configuration it will always end up with error:error C1041: cannot open program database *path* if multiple CL.EXE write to the same .PDB file, please use /FS
. This obviously breaks the build and that's it. I've played around in VS22 IDE trying to change settings and the cause was/isDebug Information Format
. If it's set toNone
the build breaks. But if it's set to anything else it's ok.I've tried to build the same config through regular
cmake
withoutmeson
and it works just fine no matter the option.The only way I've been able to build it with
meson
is by passing--debug
option tomeson setup
command (orconfigure
), which will set the mentioned setting toProgram database \Zi
which is what I tried manually at first and it started working. I would be very suspicious ofglfw
itself but sincecmake
had no issue I'm not so sure anymore.I haven't been able to figure out WHY, but I'm hoping this will lead someone else to the real solution.
To Reproduce
Simple meson
with wrap file
glfw.wrap
insubprojects
folderAnd regular empty
main
function returning 0.Then just simple
meson setup . vsbuild --backend=vs --buildtype=release
followed bymeson compile -C vsbuild -j 16
. Those are my exact commands. Altering the first one like this:meson setup . vsbuild --backend=vs --buildtype=release --debug
solves the issue.I've tested it with
vs
andninja
and unfortunately it happens only withvs
backend, but I have to use it as I'm using c++20 modules and ninja is not able to handle them (yet).Expected behavior
In debug mode or with .pdb generation allowed it works fine. I would expect the same behavior in release as well.
system parameters
Native build
Windows 10
3.12
1.6.1
The text was updated successfully, but these errors were encountered: