macOS
brew install flanglocal Homebrew formula metadata
安装
brew install flanglocal Homebrew formula metadata
sudo dnf install flangFedora Rawhide package metadata · flang · 来源: dl.fedoraproject.org
nix profile install nixpkgs#flangnixpkgs package indexes · flang · 来源: raw.githubusercontent.com
概览
LLVM Fortran Frontend
历史
Flang is LLVM's Fortran frontend. The official documentation distinguishes LLVM Flang from Classic Flang, describes it as a separate and independent Fortran compiler, and notes that LLVM Flang is under active development.
LLVM Flang lives in the monorepo under `llvm-project/flang` and is documented by the Flang team. The documentation copyright spans 2017-2026 and the current docs describe an actively developed frontend that can generate executables for a number of examples while some functionality remains missing.
The compiler architecture is documented around analysis, lowering, and object-code generation/linking. Analysis creates a decorated parse tree and symbol table, lowering converts that information into FIR, a Fortran dialect of MLIR, and later passes produce LLVM IR for the existing LLVM code-generation pipeline.
Flang's adoption is tied to the LLVM toolchain rather than a standalone language ecosystem. It gives LLVM distributions, package managers, and compiler users a Fortran frontend that participates in LLVM's common infrastructure.
The official docs' distinction between LLVM Flang and Classic Flang matters for users and packagers because the name has referred to more than one Fortran compiler lineage.
Users invoke `flang` as a compiler driver for Fortran source. The docs also show developer-oriented `-fc1` and `-mmlir` commands for dumping preprocessing output, parse trees, symbol tables, FIR, MLIR pass output, and LLVM IR.
No user credentials or persistent configuration file are documented in the supplied curation or the official Flang docs.
Flang is significant because it brings Fortran into the LLVM package universe, making Fortran compilation part of the same modular compiler stack used by Clang and other LLVM frontends.
For compiler-package curators, the key nerd detail is FIR: a Fortran-specific IR layered on MLIR before conversion to LLVM IR, exposing more of the compiler pipeline than a black-box Fortran driver.
安全态势
没有找到 flang 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bbc | cli | 全局可执行文件 | |
f18-parse-demo | cli | 全局可执行文件 | |
fir-lsp-server | cli | 全局可执行文件 | |
fir-opt | cli | 全局可执行文件 | |
flang | cli | 全局可执行文件 | |
flang-22 | cli | 全局可执行文件 | |
flang-new | cli | 全局可执行文件 | |
tco | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/llvm/llvm-project
安装元数据
| 软件包键 | brew:flang |
|---|---|
| 版本 | 22.1.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/flang |
| 主页 | https://flang.llvm.org/ |
| 仓库 | https://github.com/llvm/llvm-project |
| 上游文档 | https://flang.llvm.org/docs |
| 许可证 | Apache-2.0 WITH LLVM-exception |
| 源码归档 | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| 最后更新 | 2026-06-21T01:50:33Z |
| Pulse | updated |
| 依赖 | llvm |
| 构建依赖 | cmake, ninja |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | flang |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
flang 1:19.0-63
Fortran compiler
sudo apt install flangflang
nix profile install nixpkgs#flangflang 1:18.0-59~exp2
Fortran compiler
sudo apt install flangflang 22.1.7-1.fc45
a Fortran language front-end designed for integration with LLVM
sudo dnf install flang来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.