[compiler-rt] [compiler-rt] [ubsan] Fix missing include directory (PR #180341)
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 7 02:13:10 PST 2026
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/180341
Fixes missing `-I` path that broke standalone builds in #179011. Matches `include_direcotires()` in other compiler-rt libraries.
>From a3728291d505b55ea746efc70b031cc83258a1f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Sat, 7 Feb 2026 11:11:39 +0100
Subject: [PATCH] [compiler-rt] [ubsan] Fix missing include directory
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes missing `-I` path that broke standalone builds in #179011.
Matches `include_direcotires()` in other compiler-rt libraries.
Signed-off-by: Michał Górny <mgorny at gentoo.org>
---
compiler-rt/lib/ubsan/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler-rt/lib/ubsan/CMakeLists.txt b/compiler-rt/lib/ubsan/CMakeLists.txt
index 3f227491afe2d..f48db7c455bb8 100644
--- a/compiler-rt/lib/ubsan/CMakeLists.txt
+++ b/compiler-rt/lib/ubsan/CMakeLists.txt
@@ -43,6 +43,7 @@ set(UBSAN_HEADERS
)
include_directories(..)
+include_directories(../../include)
set(UBSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_list_if(MSVC /Zl UBSAN_CFLAGS)
More information about the llvm-commits
mailing list