[Python-checkins] CVS: python/dist/src/Lib/distutils unixccompiler.py,1.33,1.33.2.1

Thomas Wouters twouters@users.sourceforge.net
Thu, 19 Jul 2001 02:50:51 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv5806/Lib/distutils

Modified Files:
      Tag: release21-maint
	unixccompiler.py 
Log Message:

Backport of AMK's checkin 1.34 and Guido's checkin 1.35:

[Bug #441527] Fixes for preprocessor support, contributed by Tarn
    Weisner Burton



Index: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.33
retrieving revision 1.33.2.1
diff -C2 -r1.33 -r1.33.2.1
*** unixccompiler.py	2001/04/05 15:46:48	1.33
--- unixccompiler.py	2001/07/19 09:50:49	1.33.2.1
***************
*** 100,109 ****
              pp_args[:0] = extra_preargs
          if extra_postargs:
!             extra_postargs.extend(extra_postargs)
  
!         # We need to preprocess: either we're being forced to, or the
!         # source file is newer than the target (or the target doesn't
          # exist).
!         if self.force or (output_file and newer(source, output_file)):
              if output_file:
                  self.mkpath(os.path.dirname(output_file))
--- 100,110 ----
              pp_args[:0] = extra_preargs
          if extra_postargs:
!             pp_args.extend(extra_postargs)
  
!         # We need to preprocess: either we're being forced to, or we're
!         # generating output to stdout, or there's a target output file and 
!         # the source file is newer than the target (or the target doesn't
          # exist).
!         if self.force or output_file is None or newer(source, output_file):
              if output_file:
                  self.mkpath(os.path.dirname(output_file))