c++cmakeclgodbolt

Using compiler explorer in IDE mode with msvc


When using compiler explorer in IDE mode with CMake, I can easily switch between gcc or clang versions but msvc gives me: <Compilation failed: Request failed: HTTP error code 400>.
A basic example.

Is it possible to make it works with msvc, and how ?


Solution

  • Godbolt doesn't support cmake with MSVC https://github.com/compiler-explorer/compiler-explorer/issues/3216