Skip to content

Commit 89303b9

Browse files
committed
[XPTIFW] Apply hardening flags to the subproject
1 parent d26e73c commit 89303b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xptifw/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if (NOT DEFINED XPTI_DIR) # don't overwrite if already set
1919
endif()
2020
endif()
2121

22+
if (LLVM_ENABLE_PROJECTS)
23+
# If XPTIFW is built as part of LLVM (i.e. as part of SYCL), then let's
24+
# re-use existing infrastructure for setting up various hardening flags
25+
include(HandleLLVMOptions)
26+
endif()
27+
2228
option(XPTI_ENABLE_WERROR OFF)
2329
option(XPTI_BUILD_SAMPLES OFF)
2430
option(XPTI_BUILD_BENCHMARK OFF)

0 commit comments

Comments
 (0)