File tree Expand file tree Collapse file tree 13 files changed +31
-16
lines changed Expand file tree Collapse file tree 13 files changed +31
-16
lines changed Original file line number Diff line number Diff line change 19
19
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
20
20
config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
21
21
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
22
+ config.shlibdir = config.shlibdir % lit_config.params
22
23
except KeyError:
23
24
e = sys.exc_info()[1]
24
25
key, = e.args
Original file line number Diff line number Diff line change 1
- set (LLVM_SOURCE_DIR "${LLVM_MAIN_SRC_DIR} " )
2
- set (LLVM_BINARY_DIR "${LLVM_BINARY_DIR} " )
3
- set (LLVM_BUILD_MODE "%(build_mode)s" )
4
- set (LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR} /%(build_config)s" )
5
- set (LLVM_LIBS_DIR "${LLVM_BINARY_DIR} /lib${LLVM_LIBDIR_SUFFIX} /%(build_config)s" )
1
+ if (CMAKE_CFG_INTDIR STREQUAL "." )
2
+ set (LLVM_BUILD_MODE "." )
3
+ else ()
4
+ set (LLVM_BUILD_MODE "%(build_mode)s" )
5
+ endif ()
6
+
7
+ string (REPLACE "${CMAKE_CFG_INTDIR} " "${LLVM_BUILD_MODE} " LLD_LIBS_DIR "${LLVM_LIBRARY_OUTPUT_INTDIR} " )
8
+ string (REPLACE "${CMAKE_CFG_INTDIR} " "${LLVM_BUILD_MODE} " LLD_TOOLS_DIR "${LLVM_RUNTIME_OUTPUT_INTDIR} " )
6
9
7
10
llvm_canonicalize_cmake_booleans (
8
11
LLVM_ENABLE_ZLIB
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ config.llvm_build_mode = "@LLVM_BUILD_MODE@"
8
8
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
9
9
config.lld_obj_root = "@LLD_BINARY_DIR@"
10
10
config.lld_src_root = "@LLD_SOURCE_DIR@"
11
- config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR @"
12
- config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR @"
11
+ config.lld_libs_dir = "@LLD_LIBS_DIR @"
12
+ config.lld_tools_dir = "@LLD_TOOLS_DIR @"
13
13
config.target_triple = "@TARGET_TRIPLE@"
14
14
config.python_executable = "@Python3_EXECUTABLE@"
15
15
19
19
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
20
20
config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
21
21
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
22
+ config.lld_libs_dir = config.lld_libs_dir % lit_config.params
23
+ config.lld_tools_dir = config.lld_tools_dir % lit_config.params
22
24
except KeyError as e:
23
25
key, = e.args
24
26
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
9
9
config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
10
10
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
11
11
config.lld_obj_root = "@LLD_BINARY_DIR@"
12
- config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR @"
13
- config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR @"
12
+ config.lld_libs_dir = "@LLD_LIBS_DIR @"
13
+ config.lld_tools_dir = "@LLD_TOOLS_DIR @"
14
14
config.target_triple = "@TARGET_TRIPLE@"
15
15
config.python_executable = "@Python3_EXECUTABLE@"
16
16
config.have_zlib = @LLVM_ENABLE_ZLIB@
@@ -23,6 +23,8 @@ config.ld_lld_default_mingw = @LLD_DEFAULT_LD_LLD_IS_MINGW@
23
23
try:
24
24
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
25
25
config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
26
+ config.lld_libs_dir = config.lld_libs_dir % lit_config.params
27
+ config.lld_tools_dir = config.lld_tools_dir % lit_config.params
26
28
except KeyError as e:
27
29
key, = e.args
28
30
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
Original file line number Diff line number Diff line change 54
54
config.lldb_executable = config.lldb_executable % lit_config.params
55
55
config.lldb_libs_dir = config.lldb_libs_dir % lit_config.params
56
56
config.test_compiler = config.test_compiler % lit_config.params
57
+ config.dsymutil = config.dsymutil % lit_config.params
57
58
config.lldb_framework_dir = config.lldb_framework_dir % lit_config.params
58
59
config.dotest_args_str = config.dotest_args_str % lit_config.params
59
60
except KeyError as e:
Original file line number Diff line number Diff line change @@ -1586,11 +1586,11 @@ function(configure_lit_site_cfg site_in site_out)
1586
1586
1587
1587
set_llvm_build_mode ()
1588
1588
1589
- # They below might not be the build tree but provided binary tree.
1589
+ # The below might not be the build tree but provided binary tree.
1590
1590
set (LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR} )
1591
1591
set (LLVM_BINARY_DIR ${LLVM_BINARY_DIR} )
1592
1592
string (REPLACE "${CMAKE_CFG_INTDIR} " "${LLVM_BUILD_MODE} " LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR} " )
1593
- string (REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} LLVM_LIBS_DIR "${LLVM_LIBRARY_DIR} " )
1593
+ string (REPLACE " ${CMAKE_CFG_INTDIR} " " ${LLVM_BUILD_MODE} " LLVM_LIBS_DIR "${LLVM_LIBRARY_DIR} " )
1594
1594
1595
1595
# SHLIBDIR points the build tree.
1596
1596
string (REPLACE "${CMAKE_CFG_INTDIR} " "${LLVM_BUILD_MODE} " SHLIBDIR "${LLVM_SHLIB_OUTPUT_INTDIR} " )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ configure_lit_site_cfg(
29
29
"LLVM_SOURCE_DIR"
30
30
"LLVM_BINARY_DIR"
31
31
"LLVM_TOOLS_DIR"
32
- "LLVM_LIBRARY_DIR "
32
+ "LLVM_LIBS_DIR "
33
33
"SHLIBDIR"
34
34
)
35
35
configure_lit_site_cfg (
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ config.shlibdir = path(r"@SHLIBDIR@")
14
14
try:
15
15
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
16
16
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
17
+ config.shlibdir = config.shlibdir % lit_config.params
17
18
except KeyError:
18
19
e = sys.exc_info()[1]
19
20
key, = e.args
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ config.target_triple = "@TARGET_TRIPLE@"
7
7
config.llvm_src_root = path(r"@LLVM_SOURCE_DIR@")
8
8
config.llvm_obj_root = path(r"@LLVM_BINARY_DIR@")
9
9
config.llvm_tools_dir = path(r"@LLVM_TOOLS_DIR@")
10
- config.llvm_lib_dir = path(r"@LLVM_LIBRARY_DIR @")
10
+ config.llvm_lib_dir = path(r"@LLVM_LIBS_DIR @")
11
11
config.llvm_shlib_dir = path(r"@SHLIBDIR@")
12
12
config.llvm_shlib_ext = "@SHLIBEXT@"
13
13
config.llvm_exe_ext = "@EXEEXT@"
@@ -56,6 +56,7 @@ config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
56
56
# used when we can't determine the tool dir at configuration time.
57
57
try:
58
58
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
59
+ config.llvm_lib_dir = config.llvm_lib_dir % lit_config.params
59
60
config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
60
61
except KeyError:
61
62
e = sys.exc_info()[1]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ config.target_triple = "@TARGET_TRIPLE@"
7
7
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
8
8
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
9
9
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10
- config.llvm_lib_dir = "@LLVM_LIBRARY_DIR @"
10
+ config.llvm_lib_dir = "@LLVM_LIBS_DIR @"
11
11
config.llvm_shlib_dir = "@SHLIBDIR@"
12
12
config.llvm_shlib_ext = "@SHLIBEXT@"
13
13
config.llvm_exe_ext = "@EXEEXT@"
@@ -35,6 +35,7 @@ config.standalone_obj_root = "@CMAKE_BINARY_DIR@"
35
35
# used when we can't determine the tool dir at configuration time.
36
36
try:
37
37
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
38
+ config.llvm_lib_dir = config.llvm_lib_dir % lit_config.params
38
39
config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
39
40
except KeyError:
40
41
e = sys.exc_info()[1]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ config.target_triple = "@TARGET_TRIPLE@"
7
7
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
8
8
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
9
9
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10
- config.llvm_lib_dir = "@LLVM_LIBRARY_DIR @"
10
+ config.llvm_lib_dir = "@LLVM_LIBS_DIR @"
11
11
config.llvm_shlib_dir = "@SHLIBDIR@"
12
12
config.llvm_shlib_ext = "@SHLIBEXT@"
13
13
config.llvm_exe_ext = "@EXEEXT@"
@@ -40,6 +40,7 @@ config.mlir_run_avx512_tests = "@MLIR_RUN_AVX512_TESTS@"
40
40
# used when we can't determine the tool dir at configuration time.
41
41
try:
42
42
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
43
+ config.llvm_lib_dir = config.llvm_lib_dir % lit_config.params
43
44
config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
44
45
except KeyError:
45
46
e = sys.exc_info()[1]
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ config.mlir_tools_dir = "@MLIR_TOOLS_DIR@"
17
17
try:
18
18
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
19
19
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
20
+ config.shlibdir = config.shlibdir % lit_config.params
20
21
except KeyError:
21
22
e = sys.exc_info()[1]
22
23
key, = e.args
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ config.target_triple = "@TARGET_TRIPLE@"
7
7
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
8
8
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
9
9
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
10
- config.llvm_lib_dir = "@LLVM_LIBRARY_DIR @"
10
+ config.llvm_lib_dir = "@LLVM_LIBS_DIR @"
11
11
config.llvm_shlib_dir = "@SHLIBDIR@"
12
12
config.llvm_shlib_ext = "@SHLIBEXT@"
13
13
config.llvm_exe_ext = "@EXEEXT@"
@@ -51,6 +51,7 @@ config.enable_bindings_python = @MLIR_BINDINGS_PYTHON_ENABLED@
51
51
# used when we can't determine the tool dir at configuration time.
52
52
try:
53
53
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
54
+ config.llvm_lib_dir = config.llvm_lib_dir % lit_config.params
54
55
config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params
55
56
except KeyError:
56
57
e = sys.exc_info()[1]
You can’t perform that action at this time.
0 commit comments