I'm using C++ 17 with GCC as the compiler.
If I specify no optimizations, it runs fine.
If I specify O1 or O2 then I get a failure to initialize the vulkan instance.
If I explicitly specify all the flags that O1 and/or O2 imply, then it works without issue.

Follow

Seeing similar behavior with llvm, although I haven't tried explicitly specifying all the optimization flags there.

Time to run valgrind and some other tools to see what's up.

Sign in to participate in the conversation
Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!