mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.51k stars 1.6k forks source link

KeyError: 'b_vscrt' when building with clang. #7341

Open fryeb opened 4 years ago

fryeb commented 4 years ago

Describe the bug I get an error with --backend vs when the environment variable CC is set to clang. This same error does not occur with CC=cl or CC=clang-cl

To Reproduce I have been able to reproduce this bug with a handful of projects, including the tutorial project.

Expected behavior Having read the docs, I understand that clang is not a supported compiler under the visual studio backend. However this ought to be caught by an appropriate error message.

system parameters

dcbaker commented 4 years ago

This is a general problem with our visual studio backend, we assume that the compiler is going to be msvc-like (clang-cl, intel-cl). We'd have the same problem using GCC, which should work.