Skip to content
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

v8: Add flang-new support #244

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
# --------------------------
FC_FROM_ENV := FALSE
ifneq ($(origin FC),undefined)
ifeq ($(findstring flang-new,$(notdir $(FC))),flang-new)
ES_FC := $(FC)
ESMF_COMPILER := llvm
FC_FROM_ENV := TRUE
else
ifeq ($(findstring nvfortran,$(notdir $(FC))),nvfortran)
ES_FC := $(FC)
ESMF_COMPILER := nvhpc
Expand Down Expand Up @@ -69,6 +74,12 @@
endif
endif
endif
endif
else
ifneq ($(wildcard $(shell which flang-new 2> /dev/null)),)
FC := flang-new
ES_FC := $(FC)
ESMF_COMPILER := llvm
else
ifneq ($(wildcard $(shell which nvfortran 2> /dev/null)),)
FC := nvfortran
Expand Down Expand Up @@ -109,6 +120,7 @@
endif
endif
endif
endif

F77 := $(FC)
F90 := $(FC)
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

### Updates
### Fixed

- Add support for flang-new

### Changed
### Removed
### Added
Expand Down