feat: make flang-new a first-class citizen in fpm #1174
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.
Fixes #1089.
This PR makes LLVM Flang (
flang-new
) a first-class citizen in fpm by updating compiler identification and flag support.Since Classic Flang is deprecated, this change makes
flang
resolve to the modern LLVM implementation while preserving access to the legacy compiler, nowflang-classic
.Changes Made
"flang"
and"flang-new"
now resolve toid_flang_new
(LLVM Flang)"flang-classic"
now resolves toid_flang
(Classic Flang)id_flang
compiler name changed from"flang"
to"flang-classic"
Added Complete Flag Support for flang-new
Based on the official flang-new command line reference:
-g
,-O3
-ffree-form
,-ffixed-form
-fimplicit-none
-cpp
-fPIC
handling (disabled on Windows MSVC target)Backward Compatibility
flang-new
usage unchangedflang-classic
cc: @rouson