|
150 | 150 | "mlir": "check-mlir",
|
151 | 151 | "openmp": "check-openmp",
|
152 | 152 | "polly": "check-polly",
|
| 153 | + "lit": "check-lit", |
153 | 154 | }
|
154 | 155 |
|
155 | 156 | RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc", "flang-rt"}
|
|
166 | 167 | ("llvm", "utils", "gn"): "gn",
|
167 | 168 | (".github", "workflows", "premerge.yaml"): ".ci",
|
168 | 169 | ("third-party",): ".ci",
|
| 170 | + ("llvm", "utils", "lit"): "lit", |
169 | 171 | }
|
170 | 172 |
|
| 173 | +# Projects that should run tests but cannot be explicitly built. |
| 174 | +SKIP_BUILD_PROJECTS = ["CIR", "lit"] |
| 175 | + |
171 | 176 | # Projects that should not run any tests. These need to be metaprojects.
|
172 | 177 | SKIP_PROJECTS = ["docs", "gn"]
|
173 | 178 |
|
@@ -315,7 +320,9 @@ def get_env_variables(modified_files: list[str], platform: str) -> Set[str]:
|
315 | 320 | # clang build, but it requires an explicit option to enable. We set that
|
316 | 321 | # option here, and remove it from the projects_to_build list.
|
317 | 322 | enable_cir = "ON" if "CIR" in projects_to_build else "OFF"
|
318 |
| - projects_to_build.discard("CIR") |
| 323 | + # Remove any metaprojects from the list of projects to build. |
| 324 | + for project in SKIP_BUILD_PROJECTS: |
| 325 | + projects_to_build.discard(project) |
319 | 326 |
|
320 | 327 | # We use a semicolon to separate the projects/runtimes as they get passed
|
321 | 328 | # to the CMake invocation and thus we need to use the CMake list separator
|
|
0 commit comments