Skip to content

Commit

Permalink
Move Mac Intel builds to macOS 14
Browse files Browse the repository at this point in the history
With the release of macOS 15, Homebrew
no longer supports macOS 12. We already build
for arm64 Mac with macOS 13 and 15, so build
for Intel with macOS 14.
  • Loading branch information
benmwebb committed Sep 18, 2024
1 parent 7459edc commit 7b0a471
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ END
# Normal full build
else

if [ $PLATFORM = "mac10v10-intel" ] || [ $PLATFORM = "mac10v15-intel" ] || [ $PLATFORM = "mac11v0-intel" ] || [ $PLATFORM = "mac13arm64-gnu" ] || [ $PLATFORM = "mac12-intel" ]; then
if [ $PLATFORM = "mac10v10-intel" ] || [ $PLATFORM = "mac10v15-intel" ] || [ $PLATFORM = "mac11v0-intel" ] || [ $PLATFORM = "mac13arm64-gnu" ] || [ $PLATFORM = "mac14-intel" ]; then
export LANG="en_US.UTF-8"
get_cmake $PLATFORM
CMAKE_ARGS+=("-DCMAKE_BUILD_TYPE=Release" \
Expand Down
12 changes: 6 additions & 6 deletions check_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,12 +1839,12 @@ def main():

# Main platforms to build on: macOS (Intel, ARM64); old Mac;
# Windows (32-bit, 64-bit)
mac12 = 'mac12-intel'
mac14 = 'mac14-intel'
mac13arm = 'mac13arm64-gnu'
mac64 = 'mac10v4-intel64'
win32 = 'i386-w32'
win64 = 'x86_64-w64'
all_archs = [mac12, mac13arm, mac64, win32, win64]
all_archs = [mac14, mac13arm, mac64, win32, win64]

# Old Mac build is only for stable IMP release
if opts.imp_branch == 'develop':
Expand Down Expand Up @@ -1885,7 +1885,7 @@ def main():
if opts.imp_branch != 'develop':
rh_rpms.insert(0, rh7_64)
new_archs_map.insert(0, rh7_64)
all_archs_map = [debug8, mac12, mac13arm, win32, fast8, fastmac, static,
all_archs_map = [debug8, mac14, mac13arm, win32, fast8, fastmac, static,
release8, f40_64] + new_archs_map + [coverage, cuda]
if opts.imp_branch != 'develop':
all_archs_map.insert(1, mac64)
Expand All @@ -1906,7 +1906,7 @@ def main():
c.include_component('ALLPYTHON', [fast8, release8])
for m in ('mpi', 'spb', 'nestor'):
mods = [release8, debug8, rh8_64, rh9_64, f40_64, fast8,
coverage, win32, win64, mac12, mac13arm, fastmac, focal,
coverage, win32, win64, mac14, mac13arm, fastmac, focal,
jammy, noble]
# IMP.nestor *also* needs Python 3, not available on mac64
# or RHEL7
Expand Down Expand Up @@ -1971,7 +1971,7 @@ def main():
c.add_cmake_log(cuda, ['build', 'test', 'example'], [])
# Add coverage build
c.add_cmake_log(coverage, ['build', 'test', 'example'], [])
all_archs_map = [debug8, mac12, mac13arm, fast8, fastmac, static,
all_archs_map = [debug8, mac14, mac13arm, fast8, fastmac, static,
release8, win32, win64, cuda, coverage]
if opts.imp_branch != 'develop':
all_archs_map.insert(1, mac64)
Expand Down Expand Up @@ -2002,7 +2002,7 @@ def main():
c.include_component(m, [cuda, coverage])
for m in ('isd_emxl',):
incs = [release8, debug8, f40_64, fast8, coverage, win32,
win64, mac12, mac13arm, fastmac] + rh_rpms
win64, mac14, mac13arm, fastmac] + rh_rpms
if opts.imp_branch != 'develop':
incs.append(mac64)
c.include_component(m, incs)
Expand Down
10 changes: 10 additions & 0 deletions imp_build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,16 @@ def __init__(self, very_short, short, long, very_long, logfile):
"Homebrew Python 3", "")
+ percpp_vlong,
'bin.mac12-intel.log')),
('mac14-intel',
Platform(
'M14', 'Mac 14',
'Debug build (64-bit Intel Mac; MacOS 14 '
'(Sonoma); clang++; Boost 1.86; Python 3; '
'per-cpp compilation)',
mac_vlong % ("64-bit MacOS 14 (Sonoma) Mac",
"Homebrew Python 3", "")
+ percpp_vlong,
'bin.mac14-intel.log')),
('fastmac13',
Platform(
'McFst', 'Mac Fast',
Expand Down

0 comments on commit 7b0a471

Please sign in to comment.