[Openmp-commits] [clang] [openmp] [OFFLOAD] Build DeviceRTL with SPIRV backend (PR #174675)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jan 9 16:53:00 PST 2026
================
@@ -25,14 +25,18 @@ set(src_files
${CMAKE_CURRENT_SOURCE_DIR}/src/Workshare.cpp
)
-list(APPEND compile_options -flto)
+if(NOT "${LLVM_DEFAULT_TARGET_TRIPLE}" MATCHES "^spirv" AND
+ NOT "${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^spirv")
+ list(APPEND compile_options -flto)
----------------
jhuber6 wrote:
We should be using `-flto`.
https://github.com/llvm/llvm-project/pull/174675
More information about the Openmp-commits
mailing list