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.
1 parent 57e9dd1 commit a5609b8Copy full SHA for a5609b8
flang/unittests/CMakeLists.txt
@@ -11,6 +11,11 @@ add_custom_target(FlangUnitTests)
11
set_target_properties(FlangUnitTests PROPERTIES FOLDER "Flang/Tests")
12
13
function(add_flang_unittest_offload_properties target)
14
+ # Do not apply runtime properties if not even compiling the runtime.
15
+ if (NOT FLANG_INCLUDE_RUNTIME)
16
+ return ()
17
+ endif ()
18
+
19
# Set CUDA_RESOLVE_DEVICE_SYMBOLS.
20
if (FLANG_EXPERIMENTAL_CUDA_RUNTIME)
21
set_target_properties(${target}
0 commit comments