Skip to content

Commit aa33fcc

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
getdeps: emit DEVELOPER_DIR for macOS CI builds; regenerate rebalancer workflow
Summary: Effectively bumps XCode to 16.2 - which has better support for modern C++. macOS GitHub Actions runners with multiple Xcode versions installed need DEVELOPER_DIR set to select the correct toolchain. Without it, CMake may find the wrong compiler or SDK and the build can fail. Add DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer to the env block emitted for darwin builds in the getdeps.py generate-github-actions command, and regenerate the rebalancer oss_root/.github/workflows/getdeps_mac.yml to match. Reviewed By: xiatingouyang Differential Revision: D102531661 fbshipit-source-id: 62ac61a44989414e59df5d7a50a166548c354287
1 parent b48f79b commit aa33fcc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

build/fbcode_builder/getdeps.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,17 @@ def write_job_for_platform(self, platform, args): # noqa: C901
11791179
out.write(" build:\n")
11801180
out.write(" runs-on: %s\n" % runs_on)
11811181
out.write(f" timeout-minutes: {timeout_minutes}\n")
1182+
env_vars = []
1183+
if build_opts.is_darwin():
1184+
env_vars.append(
1185+
" DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer\n"
1186+
)
11821187
if use_sccache:
1188+
env_vars.append(' SCCACHE_GHA_ENABLED: "on"\n')
1189+
if env_vars:
11831190
out.write(" env:\n")
1184-
out.write(' SCCACHE_GHA_ENABLED: "on"\n')
1191+
for line in env_vars:
1192+
out.write(line)
11851193
out.write(" steps:\n")
11861194

11871195
if build_opts.is_linux():

0 commit comments

Comments
 (0)