diff --git a/dtool/pptempl/Global.pp b/dtool/pptempl/Global.pp index d72cdfba80..185aa7bbbd 100644 --- a/dtool/pptempl/Global.pp +++ b/dtool/pptempl/Global.pp @@ -283,7 +283,7 @@ // is. #defer active_target $[if $[build_target],$[TARGET]] -#if $[and $[eq $[NUMBER_OF_PROCESSORS],1], $[eq $[NO_COMBINED_SOURCES],]] +#if $[and $[or $[eq $[BUILD_TYPE],msvc], $[and $[eq $[BUILD_TYPE],gmsvc], $[eq $[NUMBER_OF_PROCESSORS],1]]], $[eq $[NO_COMBINED_SOURCES],]] // for non-composite dirs, want to avoid returning the composite default name #defer get_combined_sources $[if $[ne $[COMBINED_SOURCES],], $[TARGET]_composite.cxx,] #else diff --git a/dtool/pptempl/Template.msvc.pp b/dtool/pptempl/Template.msvc.pp index 8cfce1b3fb..139855f4d4 100644 --- a/dtool/pptempl/Template.msvc.pp +++ b/dtool/pptempl/Template.msvc.pp @@ -178,7 +178,7 @@ // for single-processor builds, write out *_composite.cxx files that include all composite // files into 1 in order to speed the build of our heavily templated source #forscopes lib_target bin_target static_lib_target -#if $[and $[eq $[NUMBER_OF_PROCESSORS],1], $[eq $[NO_COMBINED_SOURCES],], $[ne $[COMBINED_SOURCES],]] +#if $[and $[eq $[NO_COMBINED_SOURCES],], $[ne $[COMBINED_SOURCES],]] #output $[TARGET]_composite.cxx #format collapse /* Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[SOURCEFILE]. */ @@ -236,9 +236,7 @@ $[TAB] -del /f $[patsubst %.yxx %.lxx,%.cxx,$[yxx_so_sources] $[yxx_st_sources] #if $[ne $[DEPENDENCY_CACHE_FILENAME],] $[TAB] -del /f $[DEPENDENCY_CACHE_FILENAME] #endif -#if $[eq $[NUMBER_OF_PROCESSORS],1] $[TAB] rm -f *_composite.cxx // eliminate generated *_composite.cxx files for uniprocessor builds -#endif clean-igate : #forscopes metalib_target lib_target ss_lib_target