mosra / toolchains

Toolchains for crosscompiling with CMake.
https://magnum.graphics/
The Unlicense
91 stars 31 forks source link

msvc intellisense update #17

Closed hsdk123 closed 2 years ago

mosra commented 2 years ago

Okay, if they say in that blog post it has to be in cache, then I suppose this makes sense :)

mosra commented 2 years ago

Oh, about that comment, shouldn't that be linux-gcc-x86 instead of linux-gcc-x64? Because Emscripten is 32-bit, with sizeof(void*) == 4, so pretending it's 64-bit may lead to nasty consequences.

Does it work well if you set it to linux-gcc-x86 instead?

hsdk123 commented 2 years ago

They actually both seem to work - honestly not sure what the difference is and I can't find any docs (...)

mosra commented 2 years ago

The difference is that one is 32-bit and the other is 64-bit. So I suppose you'd get different autocompletion hints, different predefined macros would be available (such as CORRADE_TARGET_32BIT), and so on. May not matter for most of the code, but in some lower-level parts it might.

Merged as 8202bb95c7d19143dde9339ca49e1b692ad316b7, thanks! If that's okay, I'll update the toolchains submodule in all repos next time I have something additional to push.