From e685ea45ed98a7fe78875ab91206e3912aec32aa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 17:26:30 +0000 Subject: [PATCH] Fix OCaml linker flag and align validation runners with build runners Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --- .github/workflows/nightly.yml | 2 +- .github/workflows/release.yml | 2 +- src/api/ml/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 655973f14..e637baa75 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -77,7 +77,7 @@ jobs: validate-macos-headerpad-x64: name: "Validate macOS x64 dylib headerpad" needs: [mac-build-x64] - runs-on: macos-13 + runs-on: macos-latest timeout-minutes: 15 steps: - name: Checkout code diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 607ddc9f2..d284e1081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,7 +96,7 @@ jobs: validate-macos-headerpad-x64: name: "Validate macOS x64 dylib headerpad" needs: [mac-build-x64] - runs-on: macos-13 + runs-on: macos-15 timeout-minutes: 15 steps: - name: Checkout code diff --git a/src/api/ml/CMakeLists.txt b/src/api/ml/CMakeLists.txt index 1007939cb..2727c55ed 100644 --- a/src/api/ml/CMakeLists.txt +++ b/src/api/ml/CMakeLists.txt @@ -160,7 +160,7 @@ endif() if( APPLE ) # set(ocaml_rpath "@executable_path/../libz3${so_ext}") # Add headerpad for install_name_tool compatibility on macOS - list(APPEND c_lib_deps "-Wl,-headerpad_max_install_names") + list(APPEND c_lib_deps "-ldopt" "-Wl,-headerpad_max_install_names") elseif( UNIX ) set(ocaml_rpath "\\$ORIGIN/../libz3${so_ext}") list(APPEND c_lib_deps "-dllpath" ${ocaml_rpath})