Browse Source

fix multi-proc nmake case to use new opt

cxgeorge 24 years ago
parent
commit
94b4150e11
2 changed files with 2 additions and 4 deletions
  1. 1 1
      dtool/pptempl/Global.pp
  2. 1 3
      dtool/pptempl/Template.msvc.pp

+ 1 - 1
dtool/pptempl/Global.pp

@@ -283,7 +283,7 @@
 // is.
 // is.
 #defer active_target $[if $[build_target],$[TARGET]]
 #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
  // for non-composite dirs, want to avoid returning the composite default name
 #defer get_combined_sources $[if $[ne $[COMBINED_SOURCES],], $[TARGET]_composite.cxx,]
 #defer get_combined_sources $[if $[ne $[COMBINED_SOURCES],], $[TARGET]_composite.cxx,]
 #else
 #else

+ 1 - 3
dtool/pptempl/Template.msvc.pp

@@ -178,7 +178,7 @@
 // for single-processor builds, write out *_composite.cxx files that include all composite
 // 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
 // files into 1 in order to speed the build of our heavily templated source
 #forscopes lib_target bin_target static_lib_target
 #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
 #output $[TARGET]_composite.cxx
 #format collapse
 #format collapse
 /* Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[SOURCEFILE]. */
 /* 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],]
 #if $[ne $[DEPENDENCY_CACHE_FILENAME],]
 $[TAB] -del /f $[DEPENDENCY_CACHE_FILENAME]
 $[TAB] -del /f $[DEPENDENCY_CACHE_FILENAME]
 #endif
 #endif
-#if $[eq $[NUMBER_OF_PROCESSORS],1]
 $[TAB] rm -f *_composite.cxx  // eliminate generated *_composite.cxx files for uniprocessor builds
 $[TAB] rm -f *_composite.cxx  // eliminate generated *_composite.cxx files for uniprocessor builds
-#endif
 
 
 clean-igate :
 clean-igate :
 #forscopes metalib_target lib_target ss_lib_target
 #forscopes metalib_target lib_target ss_lib_target