~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Lib/distutils/util.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
            osname = "macosx"
126
126
 
127
127
 
128
 
            if (release + '.') < '10.4.' and \
129
 
                    get_config_vars().get('UNIVERSALSDK', '').strip():
 
128
            if (release + '.') >= '10.4.' and \
 
129
                    '-arch' in get_config_vars().get('CFLAGS', '').strip():
130
130
                # The universal build will build fat binaries, but not on
131
131
                # systems before 10.4
 
132
                #
 
133
                # Try to detect 4-way universal builds, those have machine-type
 
134
                # 'universal' instead of 'fat'.
 
135
 
132
136
                machine = 'fat'
133
137
 
 
138
                if '-arch x86_64' in get_config_vars().get('CFLAGS'):
 
139
                    machine = 'universal'
 
140
 
134
141
            elif machine in ('PowerPC', 'Power_Macintosh'):
135
142
                # Pick a sane name for the PPC architecture.
136
143
                machine = 'ppc'