Skip to content

Commit b58bd1f

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/meinersbur/flang_runtime_move-files
2 parents 5b8c8ec + afb767b commit b58bd1f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

flang/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ else()
235235
endif()
236236

237237
option(FLANG_INCLUDE_RUNTIME "Build the runtime in-tree (deprecated; to be replaced with LLVM_ENABLE_RUNTIMES=flang-rt)" ON)
238-
pythonize_bool(FLANG_INCLUDE_RUNTIME)
239238

240239
set(FLANG_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
241240
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")

flang/test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,7 @@ if (DEFINED FLANG_TEST_TARGET_TRIPLE)
126126
endif()
127127

128128
# Compatibility targets.
129-
add_custom_target(check-flang-rt)
130-
add_dependencies(check-flang-rt check-flang)
129+
if (FLANG_INCLUDE_RUNTIME)
130+
add_custom_target(check-flang-rt)
131+
add_dependencies(check-flang-rt check-flang)
132+
endif ()

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@LIT_SITE_CFG_IN_HEADER@
22

33
import sys
4+
import lit.util
45

56
config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
67
config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
@@ -32,7 +33,7 @@ else:
3233
config.openmp_module_dir = None
3334
config.flang_runtime_f128_math_lib = "@FLANG_RUNTIME_F128_MATH_LIB@"
3435
config.have_ldbl_mant_dig_113 = "@HAVE_LDBL_MANT_DIG_113@"
35-
config.flang_include_runtime = @FLANG_INCLUDE_RUNTIME@
36+
config.flang_include_runtime = lit.util.pythonize_bool("@FLANG_INCLUDE_RUNTIME@")
3637

3738
import lit.llvm
3839
lit.llvm.initialize(lit_config, config)

flang/unittests/Evaluate/CMakeLists.txt

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ add_flang_nongtest_unittest(integer
2626
FortranSemantics
2727
)
2828

29-
if (FLANG_INCLUDE_RUNTIME)
30-
add_flang_nongtest_unittest(intrinsics
31-
FortranSupport
32-
NonGTestTesting
33-
FortranEvaluate
34-
FortranDecimal
35-
FortranSemantics
36-
FortranParser
37-
flang_rt
38-
)
39-
endif ()
29+
add_flang_nongtest_unittest(intrinsics
30+
FortranSupport
31+
NonGTestTesting
32+
FortranEvaluate
33+
FortranDecimal
34+
FortranSemantics
35+
FortranParser
36+
flang_rt
37+
)
4038

4139
add_flang_nongtest_unittest(logical
4240
NonGTestTesting

0 commit comments

Comments
 (0)