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 b18190e commit 5f02558Copy full SHA for 5f02558
offload/test/lit.cfg
@@ -182,7 +182,12 @@ def remove_suffix_if_present(name):
182
return name
183
184
def add_libraries(source):
185
- return source + " " + config.llvm_library_intdir + "/libomptarget.devicertl.a"
+ if config.libomptarget_has_libc:
186
+ return source + " -Xoffload-linker " + "-lc " + \
187
+ "-Xoffload-linker " + "-lm " + \
188
+ config.llvm_library_intdir + "/libomptarget.devicertl.a"
189
+ else:
190
+ return source + " " + config.llvm_library_intdir + "/libomptarget.devicertl.a"
191
192
# Add platform targets
193
host_targets = [
0 commit comments