Commits

Ronald Oussoren  committed 811b9fd

Only use CC=clang workaround on OSX 10.7

The "fix" shouldn't be used there as well, properly fixing can wait for now.

  • Participants
  • Parent commits f2992be

Comments (0)

Files changed (1)

File pyobjc-core/PyObjCTest/dejagnu.py

             # Workaround for compile failure on OSX 10.7 
             # and Xcode 4.2
             CFLAGS=re.sub('\s+-isysroot\s+\S+\s+', ' ', CFLAGS)
+            CC='clang'
+
+        else:
+            CC=get_config_var('CC')
 
         commandline='MACOSX_DEPLPOYMENT_TARGET=%s %s %s -g -DMACOSX -Ilibffi-src/include -Ilibffi-src/powerpc -o /tmp/test.bin %s %s %s 2>&1'%(
                 get_config_var('MACOSX_DEPLOYMENT_TARGET'),
-                #get_config_var('CC'),
-                'clang',
+                CC,
                 CFLAGS, self.filename, ' '.join(libffiobjects),
-		extra_link)
+                extra_link)
 
         fp = os.popen(commandline)
         data = fp.read()