[PATCH] D43197: [OpenMP] Add flag for linking runtime bitcode library

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 9 07:19:23 PST 2018


ABataev added inline comments.


================
Comment at: lib/Driver/ToolChains/Cuda.cpp:592
+        Twine("lib") + CLANG_LIBDIR_SUFFIX);
+    LibraryPaths.emplace_back(DefaultLibPath.c_str());
+
----------------
Do you still need `.c_str()` here?


================
Comment at: test/Driver/openmp-offload-gpu.c:150
+/// bitcode library and add it to the LIBRARY_PATH.
+// RUN:   touch %T/libomptarget-nvptx-sm_60.bc
+// RUN:   env LIBRARY_PATH=%T %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
----------------
Create empty `libomptarget-nvptx-sm_60.bc` in `Driver/lib` directory and use it in the test rather create|delete it dynamically.


Repository:
  rC Clang

https://reviews.llvm.org/D43197





More information about the cfe-commits mailing list