|
57 | 57 | config.substitutions.append(('%B', config.flang_obj_root))
|
58 | 58 |
|
59 | 59 | # For each occurrence of a flang tool name, replace it with the full path to
|
60 |
| -# the build directory holding that tool. We explicitly specify the directories |
61 |
| -# to search to ensure that we get the tools just built and not some random |
62 |
| -# tools that might happen to be in the user's PATH. |
63 |
| -tool_dirs = [config.llvm_tools_dir, config.flang_tools_dir] |
64 |
| -flang_includes = "-I" + config.flang_intrinsic_modules_dir |
65 |
| - |
66 |
| -tools = [ToolSubst('%flang', command=FindTool('flang'), unresolved='fatal'), |
67 |
| - ToolSubst('%f18', command=FindTool('f18'), unresolved='fatal'), |
68 |
| - ToolSubst('%f18_with_includes', command=FindTool('f18'), |
69 |
| - extra_args=[flang_includes], unresolved='fatal')] |
70 |
| - |
71 |
| -llvm_config.add_tool_substitutions(tools, tool_dirs) |
| 60 | +# the build directory holding that tool. |
| 61 | +tools = [ |
| 62 | + ToolSubst('%flang', command=FindTool('flang'), unresolved='fatal'), |
| 63 | + ToolSubst('%f18', command=FindTool('f18'), unresolved='fatal'), |
| 64 | + ToolSubst('%f18_with_includes', command=FindTool('f18'), |
| 65 | + extra_args=["-I" + config.flang_intrinsic_modules_dir], unresolved='fatal') |
| 66 | +] |
| 67 | +llvm_config.add_tool_substitutions(tools, [config.flang_llvm_tools_dir]) |
72 | 68 |
|
73 | 69 | # Enable libpgmath testing
|
74 | 70 | result = lit_config.params.get("LIBPGMATH")
|
|
0 commit comments