From 89303b985b2369841747bcc93655723dceec67cc Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Tue, 9 Dec 2025 12:31:03 +0100 Subject: [PATCH] [XPTIFW] Apply hardening flags to the subproject --- xptifw/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xptifw/CMakeLists.txt b/xptifw/CMakeLists.txt index d860705b03a9c..766686ef5ab8f 100644 --- a/xptifw/CMakeLists.txt +++ b/xptifw/CMakeLists.txt @@ -19,6 +19,12 @@ if (NOT DEFINED XPTI_DIR) # don't overwrite if already set endif() endif() +if (LLVM_ENABLE_PROJECTS) + # If XPTIFW is built as part of LLVM (i.e. as part of SYCL), then let's + # re-use existing infrastructure for setting up various hardening flags + include(HandleLLVMOptions) +endif() + option(XPTI_ENABLE_WERROR OFF) option(XPTI_BUILD_SAMPLES OFF) option(XPTI_BUILD_BENCHMARK OFF)