Skip to content

Commit 15a7cb2

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 5019056 commit 15a7cb2

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
@@ -283,6 +283,11 @@ if(OPENMP_STANDALONE_BUILD)
283283
${LLVM_LIBRARY_DIRS}
284284
REQUIRED
285285
)
286+
287+
set(OPENMP_TEST_FLAGS "" CACHE STRING
288+
"Extra compiler flags to send to the test compiler.")
289+
set(OPENMP_TEST_OPENMP_FLAGS ${OPENMP_TEST_COMPILER_OPENMP_FLAGS} CACHE STRING
290+
"OpenMP compiler flag to use for testing OpenMP runtime libraries.")
286291
endif()
287292

288293
macro(pythonize_bool var)

0 commit comments

Comments
 (0)