[all-commits] [llvm/llvm-project] 7a228f: [openmp] No longer use LIBRARY_PATH to find devicertl

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Sep 1 12:24:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a228f872fbbefa6a6eba1d51da192761879fcca
      https://github.com/llvm/llvm-project/commit/7a228f872fbbefa6a6eba1d51da192761879fcca
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2021-09-01 (Wed, 01 Sep 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M openmp/libomptarget/test/lit.cfg

  Log Message:
  -----------
  [openmp] No longer use LIBRARY_PATH to find devicertl

Given D109057, change test runner to use the libomptarget-x-bc-path
argument instead of the LIBRARY_PATH environment variable to find the device
library.

Also drop the use of LIBRARY_PATH environment variable as it is far
too easy to pull in the device library from an unrelated toolchain by accident
with the current setup. No loss in flexibility to developers as the clang
commandline used here is still available.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D109061




More information about the All-commits mailing list