[flang-commits] [flang] 1b9d5d9 - [flang] Skip `fakeflang` tests on standalone build (#224241)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 17 03:22:03 PDT 2026
Author: Michał Górny
Date: 2026-09-17T12:21:58+02:00
New Revision: 1b9d5d9270525bd2dc26efdd201f493bb830f7a3
URL: https://github.com/llvm/llvm-project/commit/1b9d5d9270525bd2dc26efdd201f493bb830f7a3
DIFF: https://github.com/llvm/llvm-project/commit/1b9d5d9270525bd2dc26efdd201f493bb830f7a3.diff
LOG: [flang] Skip `fakeflang` tests on standalone build (#224241)
Given that `fakeflang` tool is not built with `FLANG_STANDALONE_BUILD`,
mark the respective test as unsupported as well.
Signed-off-by: Michał Górny <mgorny at gentoo.org>
Added:
Modified:
flang/test/Driver/fakeflang.F
flang/test/lit.cfg.py
Removed:
################################################################################
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")
More information about the flang-commits
mailing list