[compiler-rt] [compiler-rt] fix crt target dependency. (PR #174475)
Zequan Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 5 12:22:02 PST 2026
https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/174475
This fixes cmake error from https://github.com/llvm/llvm-project/pull/171941 in chrome's llvm build where we have `COMPILER_RT_BUILD_BUILTINS=OFF` and have `COMPILER_RT_TEST_BUILTINS_DIR` set. That change makes it to depend on `crt` even if we don't have it in the prebuilt dir.
>From 425769fa8b912766227b5eb869571c782d3e0c72 Mon Sep 17 00:00:00 2001
From: Zequan Wu <zequanwu at google.com>
Date: Mon, 5 Jan 2026 12:15:43 -0800
Subject: [PATCH] [compiler-rt] fix crt target dependency.
---
compiler-rt/test/builtins/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/test/builtins/CMakeLists.txt b/compiler-rt/test/builtins/CMakeLists.txt
index 06d590c15fd9a..4600eac7d195c 100644
--- a/compiler-rt/test/builtins/CMakeLists.txt
+++ b/compiler-rt/test/builtins/CMakeLists.txt
@@ -23,7 +23,7 @@ configure_lit_site_cfg(
include(builtin-config-ix)
-if (COMPILER_RT_BUILD_CRT)
+if (COMPILER_RT_BUILD_CRT AND TARGET crt)
list(APPEND BUILTINS_TEST_DEPS crt)
endif()
pythonize_bool(COMPILER_RT_BUILD_CRT)
More information about the llvm-commits
mailing list