[flang-commits] [flang] [flang] Skip `fakeflang` tests on standalone build (PR #224241)
Michał Górny via flang-commits
flang-commits at lists.llvm.org
Thu Sep 17 02:14:02 PDT 2026
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/224241
Given that `fakeflang` tool is not built with `FLANG_STANDALONE_BUILD`, mark the respective test as unsupported as well.
>From 149c5ad0066d0b2b6d1cb10c2890910818fae74d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Thu, 17 Sep 2026 11:12:43 +0200
Subject: [PATCH] [flang] Skip `fakeflang` tests on standalone build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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>
---
flang/test/Driver/fakeflang.F | 3 +++
flang/test/lit.cfg.py | 1 +
2 files changed, 4 insertions(+)
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