Compiling with Clang V7.0 in Visual Studio 2017
up vote
0
down vote
favorite
I try to compile with Clang V7.0 in Visual Studio 2017. And I had an old CLang installed that added a handy Platform Toolset: "Visual Studio 2017 - Clang with Microsoft CodeGen (v141_clang_c2)".
When I try to compile STL complains that clang_major is smaller than 6. It is set to 3 probably from a previous installation. I have installed CLang 7 and compile with it from the command line and clang_major is 7 as expected.
I suspect that I can solve the problem if I can edit v141_clang_c2 but I can't find how to do that or other solutions use the latest CLang in VS2017.
[Edited]
I managed to compile it overwriting the:
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX86clang.exe"
and
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX64clang.exe"
with the new version. All configurations works {Release, Debug} x {x32, x64}
visual-studio clang
add a comment |
up vote
0
down vote
favorite
I try to compile with Clang V7.0 in Visual Studio 2017. And I had an old CLang installed that added a handy Platform Toolset: "Visual Studio 2017 - Clang with Microsoft CodeGen (v141_clang_c2)".
When I try to compile STL complains that clang_major is smaller than 6. It is set to 3 probably from a previous installation. I have installed CLang 7 and compile with it from the command line and clang_major is 7 as expected.
I suspect that I can solve the problem if I can edit v141_clang_c2 but I can't find how to do that or other solutions use the latest CLang in VS2017.
[Edited]
I managed to compile it overwriting the:
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX86clang.exe"
and
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX64clang.exe"
with the new version. All configurations works {Release, Debug} x {x32, x64}
visual-studio clang
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I try to compile with Clang V7.0 in Visual Studio 2017. And I had an old CLang installed that added a handy Platform Toolset: "Visual Studio 2017 - Clang with Microsoft CodeGen (v141_clang_c2)".
When I try to compile STL complains that clang_major is smaller than 6. It is set to 3 probably from a previous installation. I have installed CLang 7 and compile with it from the command line and clang_major is 7 as expected.
I suspect that I can solve the problem if I can edit v141_clang_c2 but I can't find how to do that or other solutions use the latest CLang in VS2017.
[Edited]
I managed to compile it overwriting the:
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX86clang.exe"
and
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX64clang.exe"
with the new version. All configurations works {Release, Debug} x {x32, x64}
visual-studio clang
I try to compile with Clang V7.0 in Visual Studio 2017. And I had an old CLang installed that added a handy Platform Toolset: "Visual Studio 2017 - Clang with Microsoft CodeGen (v141_clang_c2)".
When I try to compile STL complains that clang_major is smaller than 6. It is set to 3 probably from a previous installation. I have installed CLang 7 and compile with it from the command line and clang_major is 7 as expected.
I suspect that I can solve the problem if I can edit v141_clang_c2 but I can't find how to do that or other solutions use the latest CLang in VS2017.
[Edited]
I managed to compile it overwriting the:
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX86clang.exe"
and
"c:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsClangC214.10.25903binHostX64clang.exe"
with the new version. All configurations works {Release, Debug} x {x32, x64}
visual-studio clang
visual-studio clang
edited Nov 9 at 0:29
asked Nov 9 at 0:05
Dan Micsa
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53217974%2fcompiling-with-clang-v7-0-in-visual-studio-2017%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown