18 Nov
2018
18 Nov
'18
1:52 p.m.
Edward Diener wrote:
I discovered that the clang-cl --version option only works with clang 6.0 on up, whereas the clang-cl -v option works down through clang 3.5 ( but not clang 3.4 ). Both output the exact same result AFAICS. However the --version option when clang-win captures it with SHELL "$(compiler) --version" does not show in a Windows command window whereas the -v option when clang-win captures it with SHELL "$(compiler) -v" does show in the Windows command window.
It seems that `clang -v` outputs to stderr instead of stdout. You could try SHELL "$(compiler) -v 2>&1", although this seems a bit picky. Not sure how the SHELL builtin will like it.