We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0402db4 + c3a176e commit 22e84b2Copy full SHA for 22e84b2
flang/unittests/CMakeLists.txt
@@ -13,6 +13,11 @@ set_target_properties(FlangUnitTests PROPERTIES FOLDER "Flang/Tests")
13
include_directories("${FLANG_RT_SOURCE_DIR}/include")
14
15
function(add_flang_unittest_offload_properties target)
16
+ # Do not apply runtime properties if not even compiling the runtime.
17
+ if (NOT FLANG_INCLUDE_RUNTIME)
18
+ return ()
19
+ endif ()
20
+
21
# Set CUDA_RESOLVE_DEVICE_SYMBOLS.
22
if (FLANG_EXPERIMENTAL_CUDA_RUNTIME)
23
set_target_properties(${target}
0 commit comments