diff --git a/Build/Chakra.Build.props b/Build/Chakra.Build.props
index 4d9f1abda31..828545721b6 100644
--- a/Build/Chakra.Build.props
+++ b/Build/Chakra.Build.props
@@ -44,6 +44,14 @@
$(ChakraCoreRootDirectory)\lib\common\placeholder;
%(AdditionalIncludeDirectories)
+
+
+ Disabled
+
+
+
+ %(AdditionalOptions) /DEBUGTYPE:CV,FIXUP
+
diff --git a/Build/Common.Build.Default.props b/Build/Common.Build.Default.props
index 02dff95757a..0ceabb682a6 100644
--- a/Build/Common.Build.Default.props
+++ b/Build/Common.Build.Default.props
@@ -64,6 +64,7 @@
+ codecoverage
$(Configuration.ToLower())
$(OutBaseDir)\bin\$(PlatformPathName.ToLower())_$(OutDirName)\
$(IntBaseDir)\obj\$(PlatformPathName.ToLower())_$(Configuration.ToLower())\$(MSBuildProjectName)\
diff --git a/Build/scripts/post_build.ps1 b/Build/scripts/post_build.ps1
index d15e973c7f1..b2fe1698402 100644
--- a/Build/scripts/post_build.ps1
+++ b/Build/scripts/post_build.ps1
@@ -2,7 +2,7 @@ param (
[ValidateSet("x86", "x64", "arm", "*")]
[string]$arch="*",
- [ValidateSet("debug", "release", "test", "*")]
+ [ValidateSet("debug", "release", "test", "codecoverage", "*")]
[string]$flavor = "*",
[string]$srcpath = "",
@@ -23,7 +23,6 @@ param (
$global:exitcode = 0
-
if ($arch -eq "*") {
. "$PSScriptRoot\util.ps1"
diff --git a/test/runtests.cmd b/test/runtests.cmd
index 0cf44d0e3e0..313399ce847 100644
--- a/test/runtests.cmd
+++ b/test/runtests.cmd
@@ -48,6 +48,7 @@ goto :main
echo.
echo -debug Build type of binaries is debug
echo -test Build type of binaries is test
+ echo -codecoverage Build type of binaries is codecoverage
echo.
echo Shorthand combinations can be used, e.g. -x64debug
echo.
@@ -134,6 +135,7 @@ goto :main
if /i "%1" == "-arm" set _BuildArch=arm& goto :ArgOk
if /i "%1" == "-debug" set _BuildType=debug& goto :ArgOk
if /i "%1" == "-test" set _BuildType=test& goto :ArgOk
+ if /i "%1" == "-codecoverage" set _BuildType=codecoverage& goto :ArgOk
if /i "%1" == "-x86debug" set _BuildArch=x86&set _BuildType=debug& goto :ArgOk
if /i "%1" == "-x64debug" set _BuildArch=x64&set _BuildType=debug& goto :ArgOk
@@ -141,6 +143,9 @@ goto :main
if /i "%1" == "-x86test" set _BuildArch=x86&set _BuildType=test& goto :ArgOk
if /i "%1" == "-x64test" set _BuildArch=x64&set _BuildType=test& goto :ArgOk
if /i "%1" == "-armtest" set _BuildArch=arm&set _BuildType=test& goto :ArgOk
+ if /i "%1" == "-x86codecoverage" set _BuildArch=x86&set _BuildType=codecoverage& goto :ArgOk
+ if /i "%1" == "-x64codecoverage" set _BuildArch=x64&set _BuildType=codecoverage& goto :ArgOk
+ if /i "%1" == "-armcodecoverage" set _BuildArch=arm&set _BuildType=codecoverage& goto :ArgOk
if /i "%1" == "-binary" set _Binary=-binary:%2& goto :ArgOkShift2
if /i "%1" == "-bindir" set _BinDir=%~f2& goto :ArgOkShift2
@@ -318,6 +323,7 @@ goto :main
if "%_BuildArchMapped%" == "x64" set _BuildArchMapped=amd64
if "%_BuildTypeMapped%" == "debug" set _BuildTypeMapped=chk
if "%_BuildTypeMapped%" == "test" set _BuildTypeMapped=fre
+ if "%_BuildTypeMapped%" == "codecoverage" set _BuildTypeMapped=fre
if "%Disable_JIT%" == "1" (
set _dynamicprofilecache=