Skip to content

Commit c49360d

Browse files
committed
[rebase] use flang_new in tests like upstream
1 parent c6ce4ed commit c49360d

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

flang/test/lit.cfg.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,9 @@
9595
unresolved='fatal')
9696
]
9797

98-
if config.include_flang_new_driver_test:
99-
tools.append(ToolSubst('%flang', command=FindTool('flang-new'), unresolved='fatal'))
100-
tools.append(ToolSubst('%flang_fc1', command=FindTool('flang-new'),
101-
extra_args=['-fc1'], unresolved='fatal'))
102-
else:
103-
tools.append(ToolSubst('%flang', command=FindTool('f18'),
104-
unresolved='fatal'))
105-
tools.append(ToolSubst('%flang_fc1', command=FindTool('f18'),
106-
unresolved='fatal'))
98+
tools.append(ToolSubst('%flang', command=FindTool('flang-new'), unresolved='fatal'))
99+
tools.append(ToolSubst('%flang_fc1', command=FindTool('flang-new'),
100+
extra_args=['-fc1'], unresolved='fatal'))
107101

108102
# Define some variables to help us test that the flang runtime doesn't depend on
109103
# the C++ runtime libraries. For this we need a C compiler. If for some reason

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ config.cplusplus_executable = "@CMAKE_CXX_COMPILER@"
2222
config.macos_sysroot = "@CMAKE_OSX_SYSROOT@"
2323
config.flang_standalone_build = "@FLANG_STANDALONE_BUILD@"
2424

25-
# Control the regression test for flang-new driver
26-
import lit.util
27-
config.include_flang_new_driver_test = \
28-
lit.util.pythonize_bool("@FLANG_BUILD_NEW_DRIVER@")
29-
3025
# Support substitution of the tools_dir with user parameters. This is
3126
# used when we can't determine the tool dir at configuration time.
3227
try:

0 commit comments

Comments
 (0)