Skip to content

Commit 7876ebc

Browse files
committed
Tune: Disable incremental link, disable whole program compilation
Add front-end tool for .cpp invocation (Dummy currently) Change build path to root folder of repository
1 parent 9909c1f commit 7876ebc

5 files changed

Lines changed: 221 additions & 6 deletions

File tree

SolutionProjectModel/SolutionProjectModel.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SolutionProjectModel", "Sol
77
EndProject
88
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testCppApp", "testCppApp.vcxproj", "{74657374-4370-7041-7070-000000000000}"
99
EndProject
10+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cppexec", "cppexec\cppexec.vcxproj", "{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|x64 = Debug|x64
@@ -31,6 +33,14 @@ Global
3133
{74657374-4370-7041-7070-000000000000}.Release|x64.Build.0 = Release|x64
3234
{74657374-4370-7041-7070-000000000000}.Release|x86.ActiveCfg = Release|Win32
3335
{74657374-4370-7041-7070-000000000000}.Release|x86.Build.0 = Release|Win32
36+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Debug|x64.ActiveCfg = Debug|x64
37+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Debug|x64.Build.0 = Debug|x64
38+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Debug|x86.ActiveCfg = Debug|Win32
39+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Debug|x86.Build.0 = Debug|Win32
40+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Release|x64.ActiveCfg = Release|x64
41+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Release|x64.Build.0 = Release|x64
42+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Release|x86.ActiveCfg = Release|Win32
43+
{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}.Release|x86.Build.0 = Release|Win32
3444
EndGlobalSection
3545
GlobalSection(SolutionProperties) = preSolution
3646
HideSolutionNode = FALSE

SolutionProjectModel/SolutionProjectModel.vcxproj

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,23 @@
7171
</ImportGroup>
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74-
<LinkIncremental>true</LinkIncremental>
75-
<OutDir>$(ProjectDir)\bin\$(Platform)_$(Configuration)\</OutDir>
74+
<LinkIncremental>false</LinkIncremental>
75+
<OutDir>$(ProjectDir)\..\</OutDir>
7676
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
7777
</PropertyGroup>
7878
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
79-
<LinkIncremental>true</LinkIncremental>
80-
<OutDir>$(ProjectDir)\bin\$(Platform)_$(Configuration)\</OutDir>
79+
<LinkIncremental>false</LinkIncremental>
80+
<OutDir>$(ProjectDir)\..\</OutDir>
8181
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
8282
</PropertyGroup>
8383
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
8484
<LinkIncremental>false</LinkIncremental>
85-
<OutDir>$(ProjectDir)\bin\$(Platform)_$(Configuration)\</OutDir>
85+
<OutDir>$(ProjectDir)\..\</OutDir>
8686
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
8787
</PropertyGroup>
8888
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
8989
<LinkIncremental>false</LinkIncremental>
90-
<OutDir>$(ProjectDir)\bin\$(Platform)_$(Configuration)\</OutDir>
90+
<OutDir>$(ProjectDir)\..\</OutDir>
9191
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
9292
</PropertyGroup>
9393
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -105,6 +105,9 @@
105105
<Link>
106106
<SubSystem>Windows</SubSystem>
107107
<GenerateDebugInformation>true</GenerateDebugInformation>
108+
<ImportLibrary>$(IntermediateOutputPath)$(TargetName).lib</ImportLibrary>
109+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
110+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
108111
</Link>
109112
</ItemDefinitionGroup>
110113
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -122,6 +125,9 @@
122125
<Link>
123126
<SubSystem>Windows</SubSystem>
124127
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
<ImportLibrary>$(IntermediateOutputPath)$(TargetName).lib</ImportLibrary>
129+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
130+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
125131
</Link>
126132
</ItemDefinitionGroup>
127133
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -143,6 +149,9 @@
143149
<EnableCOMDATFolding>true</EnableCOMDATFolding>
144150
<OptimizeReferences>true</OptimizeReferences>
145151
<GenerateDebugInformation>true</GenerateDebugInformation>
152+
<ImportLibrary>$(IntermediateOutputPath)$(TargetName).lib</ImportLibrary>
153+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
154+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
146155
</Link>
147156
</ItemDefinitionGroup>
148157
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -164,6 +173,9 @@
164173
<EnableCOMDATFolding>true</EnableCOMDATFolding>
165174
<OptimizeReferences>true</OptimizeReferences>
166175
<GenerateDebugInformation>true</GenerateDebugInformation>
176+
<ImportLibrary>$(IntermediateOutputPath)$(TargetName).lib</ImportLibrary>
177+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
178+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
167179
</Link>
168180
</ItemDefinitionGroup>
169181
<ItemGroup>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include "..\Project.h"
2+
3+
int wmain(int argc, wchar_t** argv)
4+
{
5+
6+
return 0;
7+
}
8+
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<ItemGroup>
22+
<ClCompile Include="cppexec.cpp" />
23+
</ItemGroup>
24+
<PropertyGroup Label="Globals">
25+
<VCProjectVersion>15.0</VCProjectVersion>
26+
<ProjectGuid>{DB52F66D-D0A9-4A5F-9EA4-9F08CEA33BD7}</ProjectGuid>
27+
<Keyword>Win32Proj</Keyword>
28+
<RootNamespace>cppexec</RootNamespace>
29+
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
30+
</PropertyGroup>
31+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
32+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
33+
<ConfigurationType>Application</ConfigurationType>
34+
<UseDebugLibraries>true</UseDebugLibraries>
35+
<PlatformToolset>v141</PlatformToolset>
36+
<CharacterSet>Unicode</CharacterSet>
37+
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
39+
<ConfigurationType>Application</ConfigurationType>
40+
<UseDebugLibraries>false</UseDebugLibraries>
41+
<PlatformToolset>v141</PlatformToolset>
42+
<WholeProgramOptimization>true</WholeProgramOptimization>
43+
<CharacterSet>Unicode</CharacterSet>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
46+
<ConfigurationType>Application</ConfigurationType>
47+
<UseDebugLibraries>true</UseDebugLibraries>
48+
<PlatformToolset>v141</PlatformToolset>
49+
<CharacterSet>Unicode</CharacterSet>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
52+
<ConfigurationType>Application</ConfigurationType>
53+
<UseDebugLibraries>false</UseDebugLibraries>
54+
<PlatformToolset>v141</PlatformToolset>
55+
<WholeProgramOptimization>true</WholeProgramOptimization>
56+
<CharacterSet>Unicode</CharacterSet>
57+
</PropertyGroup>
58+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
59+
<ImportGroup Label="ExtensionSettings">
60+
</ImportGroup>
61+
<ImportGroup Label="Shared">
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
73+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
74+
</ImportGroup>
75+
<PropertyGroup Label="UserMacros" />
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
77+
<LinkIncremental>false</LinkIncremental>
78+
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
79+
<OutDir>$(ProjectDir)\..\..\</OutDir>
80+
</PropertyGroup>
81+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
82+
<LinkIncremental>false</LinkIncremental>
83+
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
84+
<OutDir>$(ProjectDir)\..\..\</OutDir>
85+
</PropertyGroup>
86+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
87+
<LinkIncremental>false</LinkIncremental>
88+
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
89+
<OutDir>$(ProjectDir)\..\..\</OutDir>
90+
</PropertyGroup>
91+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
92+
<LinkIncremental>false</LinkIncremental>
93+
<IntDir>$(ProjectDir)\obj\$(Platform)_$(Configuration)\</IntDir>
94+
<OutDir>$(ProjectDir)\..\..\</OutDir>
95+
</PropertyGroup>
96+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
97+
<ClCompile>
98+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
99+
<WarningLevel>Level3</WarningLevel>
100+
<Optimization>Disabled</Optimization>
101+
<SDLCheck>true</SDLCheck>
102+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103+
<ConformanceMode>true</ConformanceMode>
104+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
105+
<LanguageStandard>stdcpp17</LanguageStandard>
106+
</ClCompile>
107+
<Link>
108+
<SubSystem>Console</SubSystem>
109+
<GenerateDebugInformation>true</GenerateDebugInformation>
110+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
111+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
112+
</Link>
113+
</ItemDefinitionGroup>
114+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
115+
<ClCompile>
116+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
117+
<WarningLevel>Level3</WarningLevel>
118+
<Optimization>Disabled</Optimization>
119+
<SDLCheck>true</SDLCheck>
120+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
121+
<ConformanceMode>true</ConformanceMode>
122+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
123+
<LanguageStandard>stdcpp17</LanguageStandard>
124+
</ClCompile>
125+
<Link>
126+
<SubSystem>Console</SubSystem>
127+
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
129+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
130+
</Link>
131+
</ItemDefinitionGroup>
132+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
133+
<ClCompile>
134+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
135+
<WarningLevel>Level3</WarningLevel>
136+
<Optimization>MaxSpeed</Optimization>
137+
<FunctionLevelLinking>true</FunctionLevelLinking>
138+
<IntrinsicFunctions>true</IntrinsicFunctions>
139+
<SDLCheck>true</SDLCheck>
140+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
141+
<ConformanceMode>true</ConformanceMode>
142+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
143+
<LanguageStandard>stdcpp17</LanguageStandard>
144+
</ClCompile>
145+
<Link>
146+
<SubSystem>Console</SubSystem>
147+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
148+
<OptimizeReferences>true</OptimizeReferences>
149+
<GenerateDebugInformation>true</GenerateDebugInformation>
150+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
151+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
152+
</Link>
153+
</ItemDefinitionGroup>
154+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
155+
<ClCompile>
156+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
157+
<WarningLevel>Level3</WarningLevel>
158+
<Optimization>MaxSpeed</Optimization>
159+
<FunctionLevelLinking>true</FunctionLevelLinking>
160+
<IntrinsicFunctions>true</IntrinsicFunctions>
161+
<SDLCheck>true</SDLCheck>
162+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
163+
<ConformanceMode>true</ConformanceMode>
164+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
165+
<LanguageStandard>stdcpp17</LanguageStandard>
166+
</ClCompile>
167+
<Link>
168+
<SubSystem>Console</SubSystem>
169+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
170+
<OptimizeReferences>true</OptimizeReferences>
171+
<GenerateDebugInformation>true</GenerateDebugInformation>
172+
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
173+
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
174+
</Link>
175+
</ItemDefinitionGroup>
176+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
177+
<ImportGroup Label="ExtensionTargets">
178+
</ImportGroup>
179+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ClCompile Include="cppexec.cpp" />
5+
</ItemGroup>
6+
</Project>

0 commit comments

Comments
 (0)