Skip to content

Commit 05271f4

Browse files
committed
[offload] Define OPENMP_TEST*_FLAGS in standalone builds
Copy the `OPENMP_TEST_FLAGS` and `OPENMP_TEST_OPENMP_FLAGS` from openmp for standalone builds, as required by the lit configs.
1 parent 5efbcd2 commit 05271f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

offload/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ if(OPENMP_STANDALONE_BUILD)
287287
${LLVM_LIBRARY_DIRS}
288288
REQUIRED
289289
)
290+
291+
set(OPENMP_TEST_FLAGS "" CACHE STRING
292+
"Extra compiler flags to send to the test compiler.")
293+
set(OPENMP_TEST_OPENMP_FLAGS ${OPENMP_TEST_COMPILER_OPENMP_FLAGS} CACHE STRING
294+
"OpenMP compiler flag to use for testing OpenMP runtime libraries.")
290295
endif()
291296

292297
macro(pythonize_bool var)

0 commit comments

Comments
 (0)