[offload] Define OPENMP_TEST*_FLAGS in standalone builds · llvm/llvm-project@909104b (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 909104b
authored and
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.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -283,6 +283,11 @@ if(OPENMP_STANDALONE_BUILD) | ||
| 283 | 283 | ${LLVM_LIBRARY_DIRS} |
| 284 | 284 | REQUIRED |
| 285 | 285 | ) |
| 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.") | |
| 286 | 291 | endif() |
| 287 | 292 | |
| 288 | 293 | macro(pythonize_bool var) |