Skip to content

build: Fix various MacOS problems with GitHub and CMake#1982

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-macllvm
Apr 22, 2025
Merged

build: Fix various MacOS problems with GitHub and CMake#1982
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-macllvm

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 20, 2025

The combination of cmake 4.0, changing homebrew default package versions, and slight changes rolled out to the GitHub Actions runner images conspired to break our CI for 2 of 3 Mac variants. Fixes:

  • Apple: only add the -isysroot to the bitcode-generating clang++ command if CMAKE_OSX_SYSROOT is defined. Plot twist -- this is no longer set by cmake starting with cmake 4.0!

  • Fix incorrect warning message for apple clang vs newish llvm in externalpackages.cmake.

  • Remove homebrew unlinking of python@3.10 that warned in install_homebrew_deps.bash. On the GHA runners, it was giving us warnings because we were asking this package to be unlinked but it wasn't installed. For future needs, add an env variable based way to unlink individual packges.

The combination of cmake 4.0, changing homebrew default package
versions, and slight changes rolled out to the GitHub Actions runner
images conspired to break our CI for 2 of 3 Mac variants. Fixes:

* Apple: only add the -isysroot to the bitcode-generating clang++
  command if CMAKE_OSX_SYSROOT is defined.
  Plot twist -- this is no longer set by cmake  starting with cmake 4.0!

* Fix incorrect warning message for apple clang vs newish llvm
  in externalpackages.cmake.

* Remove homebrew unlinking of python@3.10 that warned in
  install_homebrew_deps.bash. On the GHA runners, it was giving us
  warnings because we were asking this package to be unlinked but it
  wasn't installed.  For future needs, add an env variable based way
  to unlink individual packges.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 21, 2025

I'll hold this until the end of the day because we try to avoid ever merging without a suitable time for meaningful review, but because it fixes broken CI, I will merge it at that point even if still not reviewed.

@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 22, 2025

3 days + needed to fix broken CI --> merging

@lgritz lgritz merged commit 96d0131 into AcademySoftwareFoundation:main Apr 22, 2025
26 checks passed
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Apr 22, 2025
…areFoundation#1982)

The combination of cmake 4.0, changing homebrew default package
versions, and slight changes rolled out to the GitHub Actions runner
images conspired to break our CI for 2 of 3 Mac variants. Fixes:

* Apple: only add the -isysroot to the bitcode-generating clang++
  command if CMAKE_OSX_SYSROOT is defined.
  Plot twist -- this is no longer set by cmake  starting with cmake 4.0!

* Fix incorrect warning message for apple clang vs newish llvm
  in externalpackages.cmake.

* Remove homebrew unlinking of python@3.10 that warned in
  install_homebrew_deps.bash. On the GHA runners, it was giving us
  warnings because we were asking this package to be unlinked but it
  wasn't installed.  For future needs, add an env variable based way
  to unlink individual packges.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz deleted the lg-macllvm branch April 22, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant