Skip to content

Improve flang-new identification and add CI job for it on OSX-x86_64 #5103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 30, 2025
Merged
14 changes: 13 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,19 @@ jobs:
- script: |
brew update
make CC=gcc-12 FC=gfortran-12


- job: OSX_LLVM_flangnew
pool:
vmImage: 'macOS-latest'
variables:
LD_LIBRARY_PATH: /usr/local/opt/llvm/lib
LIBRARY_PATH: /usr/local/opt/llvm/lib
steps:
- script: |
brew update
brew install llvm flang
make TARGET=NEHALEM CC=/usr/local/opt/llvm/bin/clang FC=/usr/local/Cellar/flang/19.1.7_1/bin/flang-new NO_SHARED=1

- job: OSX_OpenMP_Clang
pool:
vmImage: 'macOS-latest'
Expand Down
7 changes: 7 additions & 0 deletions f_check
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ else
;;
*flang*)
vendor=FLANG
data=`$compiler -v 2>&1 > /dev/null`
v="${data#*version *}"
v="${v%%*.}"
major="${v%%.*}"
if [ "$major" -ge 17 ]; then
vendor=FLANGNEW
fi
bu=_
openmp='-fopenmp'
;;
Expand Down
Loading