Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not 100% sure for a cmake file but this is from an old VS 6 makefile modified for Devpartner. Perhaps you can post a relevant section of the makefile for me to look at. </p> <p>/nmbcon is a compile flag that says use BC instrumentation /nmtxon would be used for coverage analysis</p> <p>CPP=cl.exe</p> <p>CPP_PROJ=/nologo /MD /W3 /Gm /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_AFXEXT" /Fp"$(INTDIR)\main.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\" /Fd"..\bin\Debug\MAIN.pdb" /FD /GZ /c</p> <p>Would become</p> <p>CPP=nmcl.exe</p> <p>CPP_PROJ= /nmbcon /nologo /MD /W3 /Gm /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_AFXEXT" /Fp"$(INTDIR)\main.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\" /Fd"..\bin\Debug\MAIN.pdb" /FD /GZ /c </p> <p>Oh and the other poster is correct things have greatly changed by version of Visual Studio. VS2010 changed the build process to use MSBuild this caused us to completely modify the way we intercept and instterument for VS2010 and 2012.</p> <p>*<strong><em>EDIT</em></strong></p> <p>Well I did download and go through the <em>pain</em> of Cmake internship this morning. For VS2010 this seems to be a pretty simple modification just like would be needed for one of our users using MSBuild from the command line.</p> <p>In the out dir "Where to build the binaries" after the first build there will be .vcxproj.user files. This is where you need to add the flags for instrumentation</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"&gt; &lt;DevPartner_IsInstrumented&gt;1&lt;/DevPartner_IsInstrumented&gt; &lt;DevPartner_Instrumented_Type&gt; /NMbcOn&lt;/DevPartner_Instrumented_Type&gt; &lt;/PropertyGroup&gt; &lt;/Project&gt; </code></pre> <p>This can be a repeating section for each that you wish to build.</p> <p>The next key DevPartner_IsInstrumented tells us to instrument (1) or not (0). The last key DevPartner_Instrumented_Type> is what type to instrumetnt /nmbcon (Boundschecker) /nmtxon (Performance or Coverage) or both keys passed.</p> <p>So it could look like</p> <pre><code>&lt;Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"&gt; &lt;DevPartner_IsInstrumented&gt;1&lt;/DevPartner_IsInstrumented&gt; &lt;DevPartner_Instrumented_Type&gt; /NMbcOn&lt;/DevPartner_Instrumented_Type&gt; &lt;/PropertyGroup&gt; &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"&gt; &lt;DevPartner_IsInstrumented&gt;0&lt;/DevPartner_IsInstrumented&gt; &lt;DevPartner_Instrumented_Type&gt; /NMbcOn&lt;/DevPartner_Instrumented_Type&gt; &lt;/PropertyGroup&gt; &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"&gt; &lt;DevPartner_IsInstrumented&gt;0&lt;/DevPartner_IsInstrumented&gt; &lt;DevPartner_Instrumented_Type&gt; /NMbcOn&lt;/DevPartner_Instrumented_Type&gt; &lt;/PropertyGroup&gt; &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"&gt; &lt;DevPartner_IsInstrumented&gt;1&lt;/DevPartner_IsInstrumented&gt; &lt;DevPartner_Instrumented_Type&gt; /NtxcOn&lt;/DevPartner_Instrumented_Type&gt; &lt;/PropertyGroup&gt; &lt;/Project&gt; </code></pre> <p>which would be Boundschecker for Debug win32, nothing for Release win32, nothing for debug x64 and Performance / Coverage for release x64</p> <p>If IsInstrumented 0 whatever is in the type will not matter as it will not be passed.</p> <p>FYI if you open the solution in VS2010 and turn instrumentation on this will be added to the vcxproj.user files for you. And the instrumentation settings are by project / config as well.</p> <p>If not using VS2010 my note below might be correct for those versions. </p> <p>For full disclosure I am the lead developer on the instrumentation engine for DevPartner. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload