From 46ef80963f36b46aa7fd494b56c266f5d27cd48d Mon Sep 17 00:00:00 2001
From: Johannes Schickel
Date: Wed, 9 Mar 2016 18:43:52 +0100
Subject: DEVTOOLS: Enable Edit&Continue on x64 for MSVC2015+.
---
devtools/create_project/msbuild.cpp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
(limited to 'devtools/create_project')
diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
index 8a33b6bf3b..191135fd88 100644
--- a/devtools/create_project/msbuild.cpp
+++ b/devtools/create_project/msbuild.cpp
@@ -444,9 +444,15 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
"\t\t\tEnableFastChecks\n"
"\t\t\tMultiThreadedDebug\n"
"\t\t\ttrue\n"
- "\t\t\tfalse\n"
- "\t\t\t" << (isWin32 ? "EditAndContinue" : "ProgramDatabase") << "\n" // For x64 format Edit and continue is not supported, thus we default to Program Database
- "\t\t\t" << (configuration == "Analysis" ? "true" : "false") << "\n";
+ "\t\t\tfalse\n";
+ if (_version >= 14) {
+ // Since MSVC 2015 Edit and Continue is support for x64 too.
+ properties << "\t\t\t" << "EditAndContinue" << "\n";
+ } else {
+ // Older MSVC versions did not support Edit and Continue for x64, thus we do not use it.
+ properties << "\t\t\t" << (isWin32 ? "EditAndContinue" : "ProgramDatabase") << "\n";
+ }
+ properties << "\t\t\t" << (configuration == "Analysis" ? "true" : "false") << "\n";
if (configuration == "LLVM") {
// FIXME The LLVM cl wrapper does not seem to work properly with the $(TargetDir) path so we hard-code the build folder until the issue is resolved
--
cgit v1.2.3