[all-commits] [llvm/llvm-project] 4504e1: [OpenMP][CMake] Fix an issue when there is space i...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sun Jul 18 18:54:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4504e1134c9118f3c322685f8a90129e09bab92c
      https://github.com/llvm/llvm-project/commit/4504e1134c9118f3c322685f8a90129e09bab92c
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-07-18 (Sun, 18 Jul 2021)

  Changed paths:
    M openmp/libomptarget/test/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP][CMake] Fix an issue when there is space in the argument LIBOMPTARGET_LIT_ARGS

D106236 added a new CMake argument for `libomptarget` test, but when user's
input contains white spaces, CMake will add escape char to the final lit command,
which leads to an error. This patch converts the user's input `LIBOMPTARGET_LIT_ARGS`
into a local array, and then passes the array to the function.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list