Browse Source

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

* AzureCI: Add LLVM/flang-new build on OSX-x86_64
* distinguish classic flang from flang-new in name based recognition
tags/v0.3.30
Martin Kroeker GitHub 8 months ago
parent
commit
5de5072940
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions
  1. +13
    -1
      azure-pipelines.yml
  2. +7
    -0
      f_check

+ 13
- 1
azure-pipelines.yml View File

@@ -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'


+ 7
- 0
f_check View File

@@ -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'
;;


Loading…
Cancel
Save