Skip to content

Commit

Permalink
Builder|Mac OS X: Use clang to build the 10.8 package
Browse files Browse the repository at this point in the history
GCC is outdated on recent versions of OS X.
  • Loading branch information
skyjake committed Apr 3, 2013
1 parent 889b1ca commit 9e1b621
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion distrib/platform_release.py
Expand Up @@ -202,7 +202,14 @@ def mac_release():
MAC_WORK_DIR = os.path.abspath(os.path.join(DOOMSDAY_DIR, '../macx_release_build'))
remkdir(MAC_WORK_DIR)
os.chdir(MAC_WORK_DIR)
if os.system('qmake -r -spec macx-g++ CONFIG+=release DENG_BUILD=%s ' % (DOOMSDAY_BUILD_NUMBER) +

# Choose the appropriate compiler.
if mac_os_version() == '10.8':
mkspec = 'unsupported/macx-clang'
else:
mkspec = 'macx-g++'

if os.system('qmake -r -spec %s CONFIG+=release DENG_BUILD=%s ' % (mkspec, DOOMSDAY_BUILD_NUMBER) +
'../doomsday/doomsday.pro && make -j2 -w'):
raise Exception("Failed to build from source.")

Expand Down

0 comments on commit 9e1b621

Please sign in to comment.