Skip to content

Commit cad6a03

Browse files
committed
Fix OpenMP build
1 parent c1ce754 commit cad6a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/cmake/modules/AddFlangRTOffload.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ macro(enable_omp_offload_compilation name files)
9797
set_source_files_properties(${files} PROPERTIES COMPILE_OPTIONS
9898
"${OMP_COMPILE_OPTIONS}"
9999
)
100-
target_link_options(${name} PUBLIC ${OMP_COMPILE_OPTIONS})
100+
target_link_options(${name}.static PUBLIC ${OMP_COMPILE_OPTIONS})
101101

102102
# Enable "declare target" in the source code.
103103
set_source_files_properties(${files}

0 commit comments

Comments
 (0)