Skip to content

Commit cd114b1

Browse files
committed
Make run test-suite from more configurations
1 parent a036068 commit cd114b1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

flang-rt/test/Driver/ctofortran.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! UNSUPPORTED: system-windows
22

33
! RUN: split-file %s %t
4-
! RUN: %clang -c %t/cfile.c -o %t/cfile.o
4+
! RUN: %clang -I"%include/flang" -c %t/cfile.c -o %t/cfile.o
55
! RUN: %flang -L"%libdir" %deplibs %t/ffile.f90 %t/cfile.o -o %t/ctofortran
66
! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%libdir" %t/ctofortran | FileCheck %s
77

flang-rt/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def shjoin(args, sep=' '):
6868
tools = [
6969
ToolSubst(
7070
"%flang",
71-
command=FindTool("flang"),
71+
command=config.flang,
7272
extra_args=isysroot_flag,
7373
unresolved="fatal",
7474
),

flang-rt/test/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ config.flang_rt_binary_test_dir = os.path.dirname(__file__)
99
config.flang_rt_build_lib_dir = "@FLANG_RT_BUILD_LIB_DIR@"
1010
config.flang_rt_experimental_offload_support = "@FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT@"
1111
config.cc = "@CMAKE_C_COMPILER@"
12+
config.flang = "@CMAKE_Fortran_COMPILER@"
1213
config.osx_sysroot = path(r"@CMAKE_OSX_SYSROOT@")
1314

1415
import lit.llvm

0 commit comments

Comments
 (0)