[compiler-rt] [compiler-rt] Error only if sanitizer builds are enabled (PR #187944)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 22 10:21:07 PDT 2026
https://github.com/midhuncodes7 created https://github.com/llvm/llvm-project/pull/187944
This fix is to error out only if sanitizer builds are enabled as opposed to forcing flang to use an option or install the development package.
>From 9e19888b6123af3446e8c9eff432d6219be1c7e6 Mon Sep 17 00:00:00 2001
From: Midhunesh <midhunesh.p at ibm.com>
Date: Sun, 22 Mar 2026 22:40:45 +0530
Subject: [PATCH] Fix cmake error
---
compiler-rt/cmake/base-config-ix.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
index 6a6e2a88217fc..13d633b45a5e2 100644
--- a/compiler-rt/cmake/base-config-ix.cmake
+++ b/compiler-rt/cmake/base-config-ix.cmake
@@ -28,7 +28,7 @@ Set to OFF to bypass the missing-header error."
${_default_require_rpc_xdr_h})
if (NOT HAVE_RPC_XDR_H)
set(HAVE_RPC_XDR_H 0)
- if (COMPILER_RT_REQUIRE_RPC_XDR_H)
+ if (COMPILER_RT_REQUIRE_RPC_XDR_H AND COMPILER_RT_BUILD_SANITIZERS)
message(FATAL_ERROR
"${_rpc_xdr_header} is required for sanitizer builds but was not found. "
"Install the appropriate development package (e.g. bos.net.nfs.adt on AIX), "
More information about the llvm-commits
mailing list