File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,11 @@ function(compileDeviceRTLLibrary target_name target_triple)
181
181
target_compile_options (libomptarget-${target_name} PRIVATE
182
182
"--target=${target_triple} " "-fuse-ld=lld" "-march=" "-mcpu="
183
183
"-Wno-unused-command-line-argument" )
184
- target_link_options (libomptarget-${target_name} PRIVATE "--target=${target_triple} "
185
- "-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm"
186
- "-fuse-ld=lld" "-march=" "-mcpu=" )
184
+ target_link_options (libomptarget-${target_name} PRIVATE
185
+ "--target=${target_triple} " "-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm"
186
+ "-Wl,--lto-newpm-passes=default<O3>" "-Wl,-plugin-opt=-openmp-opt-disable"
187
+ "-Wl,-plugin-opt=-attributor-enable=module"
188
+ "-Wl,-plugin-opt=-vectorize-slp=false" "-fuse-ld=lld" "-march=" "-mcpu=" )
187
189
install (TARGETS libomptarget-${target_name}
188
190
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
189
191
DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /${target_triple} " )
You can’t perform that action at this time.
0 commit comments