install.sh: Adopt LLVM as the default/preferred compilers#300
Merged
bonachea merged 4 commits intoBerkeleyLab:mainfrom Mar 5, 2026
Merged
install.sh: Adopt LLVM as the default/preferred compilers#300bonachea merged 4 commits intoBerkeleyLab:mainfrom
bonachea merged 4 commits intoBerkeleyLab:mainfrom
Conversation
LLVM flang now officially supports PRIF, so that's most likely
what an end user actually wants. Update the install script defaults
to prefer flang, and prompt to brew install it when missing.
Also:
* Demote $CXX to be optional, because C++ is an optional dependency.
* Add invocation of `brew update` may be required to see the latest llvm/flang
* Fix many instances of `${VAR+x}` to `${VAR:+x}`, as the latter also
correctly handles set to an empty string.
* Remove the unnecessary brew tap of fortran-lang/hombrew-fortran,
the fpm cask is now available in the default repository.
…nstalled flang.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR converts install.sh so that instead of defaulting to the GCC compiler suite, the install script instead prefers the LLVM compiler suite (both in defaulting the choice of compilers and offering to install compilers via Homebrew).
Fixes #228 (by automating the workaround in install.sh)
Adds macOS CI coverage of install.sh invocation of Homebrew (which was previously missing) and updates documentation.