[flang-commits] [flang] [flang] Skip `fakeflang` tests on standalone build (PR #224241)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 17 02:14:41 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-driver
Author: Michał Górny (mgorny)
<details>
<summary>Changes</summary>
Given that `fakeflang` tool is not built with `FLANG_STANDALONE_BUILD`, mark the respective test as unsupported as well.
---
Full diff: https://github.com/llvm/llvm-project/pull/224241.diff
2 Files Affected:
- (modified) flang/test/Driver/fakeflang.F (+3)
- (modified) flang/test/lit.cfg.py (+1)
``````````diff
diff --git a/flang/test/Driver/fakeflang.F b/flang/test/Driver/fakeflang.F
index f3a4e162293f6..618235c5fb3e4 100644
--- a/flang/test/Driver/fakeflang.F
+++ b/flang/test/Driver/fakeflang.F
@@ -1,5 +1,8 @@
! This is how CMake probes the compiler for CMAKE_Fortran_COMPILER_ID etc.
+! fakeflang is not built for standalone builds.
+! UNSUPPORTED: flang-standalone-build
+
! RUN: rm -rf %t
! RUN: mkdir -p %t
! RUN: cp %s %t/CMakeFortranCompilerId.F
diff --git a/flang/test/lit.cfg.py b/flang/test/lit.cfg.py
index e7aa50e001b92..3754e4d803b6f 100644
--- a/flang/test/lit.cfg.py
+++ b/flang/test/lit.cfg.py
@@ -114,6 +114,7 @@
)
if config.flang_standalone_build:
+ config.available_features.add("flang-standalone-build")
# For builds with FIR, set path for tco and enable related tests
if config.flang_llvm_tools_dir != "":
config.available_features.add("fir")
``````````
</details>
https://github.com/llvm/llvm-project/pull/224241
More information about the flang-commits
mailing list