Visual studio slow compile time
Dec 21, 2014 at 6:58pm UTC
I have written a hello world program and it takes about 6 seconds to compile. Is there any way to make the compile time smaller? Code blocks take no more than a second.
1 2 3 4 5 6
#include <iostream>
int main(){
std::cout << "Hello, world!!" ;
return 0;
}
Here is the build timer log. Sorry for the long thing.
1>Project Performance Summary:
1> 6418 ms c:\Users\Enter\documents\visual studio 2013\Projects\stoi test\stoi test\stoi test.vcxproj 1 calls
1> 6418 ms Build 1 calls
1>
1>Target Performance Summary:
1> 0 ms AfterBuild 1 calls
1> 0 ms _ClCompile 1 calls
1> 0 ms ComputeRCGeneratedLinkInputs 1 calls
1> 0 ms BuildCompile 1 calls
1> 0 ms ExpandSDKReferences 1 calls
1> 0 ms _BuildCompileAction 1 calls
1> 0 ms GetInstalledSDKLocations 1 calls
1> 0 ms AfterBuildGenerateSources 1 calls
1> 0 ms AfterClCompile 1 calls
1> 0 ms BeforeBuildGenerateSources 1 calls
1> 0 ms ComputeManifestGeneratedLinkerInputs 1 calls
1> 0 ms ResolveReferences 1 calls
1> 0 ms SelectClCompile 1 calls
1> 0 ms _Deploy 1 calls
1> 0 ms PreLinkEvent 1 calls
1> 0 ms AfterMidl 1 calls
1> 0 ms BeforeResourceCompile 1 calls
1> 0 ms _BuildLinkAction 1 calls
1> 0 ms AfterBuildCompileEvent 1 calls
1> 0 ms BeforeLink 1 calls
1> 0 ms _Manifest 1 calls
1> 0 ms _SelectedFiles 1 calls
1> 0 ms CreateCustomManifestResourceNames 1 calls
1> 0 ms _Midl 1 calls
1> 0 ms AfterLink 1 calls
1> 0 ms PrepareResourceNames 1 calls
1> 0 ms CreateSatelliteAssemblies 1 calls
1> 0 ms BeforeClCompile 1 calls
1> 0 ms BuildGenerateSources 1 calls
1> 0 ms _CopySourceItemsToOutputDirectory 1 calls
1> 0 ms AfterResourceCompile 1 calls
1> 0 ms _Xsd 1 calls
1> 0 ms _ALink 1 calls
1> 0 ms ResolveSDKReferences 1 calls
1> 0 ms ComputeCLCompileGeneratedSbrFiles 1 calls
1> 0 ms BuildLink 1 calls
1> 0 ms AfterBuildGenerateSourcesEvent 1 calls
1> 0 ms _Appverifier 1 calls
1> 0 ms _ResourceCompile 1 calls
1> 0 ms _BuildGenerateSourcesAction 1 calls
1> 0 ms SelectCustomBuild 1 calls
1> 0 ms _XdcMake 1 calls
1> 0 ms _Link 1 calls
1> 0 ms AfterResolveReferences 1 calls
1> 0 ms BeforeResolveReferences 1 calls
1> 0 ms PrepareForRun 1 calls
1> 0 ms ComputeReferenceCLInput 1 calls
1> 0 ms ComputeRCOutputs 1 calls
1> 0 ms _BscMake 1 calls
1> 1 ms BuildGenerateSourcesTraverse 1 calls
1> 1 ms ComputeCLCompileGeneratedXDCFiles 1 calls
1> 1 ms MakeDirsForBscMake 1 calls
1> 1 ms BuildCompileTraverse 1 calls
1> 1 ms RegisterOutput 1 calls
1> 1 ms GetCopyToOutputDirectoryXamlAppDefs 1 calls
1> 1 ms BuildLinkTraverse 1 calls
1> 1 ms PostBuildEvent 1 calls
1> 1 ms _CheckForCompileOutputs 1 calls
1> 1 ms ComputeCustomBuildOutput 1 calls
1> 1 ms ComputeMIDLGeneratedCompileInputs 1 calls
1> 1 ms ResolvedXDCMake 1 calls
1> 1 ms ComputeCLInputPDBName 1 calls
1> 1 ms MakeDirsForXdcMake 1 calls
1> 1 ms GetReferenceAssemblyPaths 1 calls
1> 2 ms PreBuildEvent 1 calls
1> 2 ms _GenerateSatelliteAssemblyInputs 1 calls
1> 2 ms ComputeLinkImportLibraryOutputsForClean 1 calls
1> 2 ms GetResolvedWinMD 1 calls
1> 2 ms GetCopyToOutputDirectoryItems 1 calls
1> 2 ms ComputeLegacyManifestEmbedding 1 calls
1> 2 ms MakeDirsForResourceCompile 1 calls
1> 2 ms ComputeManifestInputsTargets 1 calls
1> 3 ms Build 1 calls
1> 4 ms ResolveAssemblyReferences 1 calls
1> 4 ms ComputeLinkInputsFromProject 1 calls
1> 5 ms ResolveProjectReferences 1 calls
1> 6 ms CopyFilesToOutputDirectory 1 calls
1> 6 ms MakeDirsForLink 1 calls
1> 7 ms _PrepareForReferenceResolution 1 calls
1> 7 ms PlatformPrepareForBuild 1 calls
1> 11 ms GetFrameworkPaths 1 calls
1> 11 ms AssignTargetPaths 1 calls
1> 13 ms SplitResourcesByCulture 1 calls
1> 18 ms FinalizeBuildStatus 1 calls
1> 21 ms ComputeCLOutputs 1 calls
1> 21 ms DoLinkOutputFilesMatch 1 calls
1> 24 ms MakeDirsForMidl 1 calls
1> 25 ms ComputeLinkSwitches 1 calls
1> 31 ms _SplitProjectReferencesByFileExistence 1 calls
1> 35 ms MakeDirsForCl 1 calls
1> 44 ms ComputeCLGeneratedLinkInputs 1 calls
1> 46 ms SetBuildDefaultEnvironmentVariables 1 calls
1> 47 ms PrepareForBuild 1 calls
1> 57 ms WarnCompileDuplicatedFilename 1 calls
1> 108 ms _PrepareForBuild 1 calls
1> 114 ms InitializeBuildStatus 1 calls
1> 182 ms AssignProjectConfiguration 1 calls
1> 443 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 603 ms SetCABuildNativeEnvironmentVariables 1 calls
1> 737 ms Link 1 calls
1> 3486 ms ClCompile 1 calls
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Dec 22, 2014 at 2:30pm UTC
Anyone?
Topic archived. No new replies allowed.