[all-commits] [llvm/llvm-project] 98033f: sanitizer_common: Fix build for tests

Marco Elver via All-commits all-commits at lists.llvm.org
Mon Jul 12 15:50:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98033fdc50e61273b1d5c77ba5f0f75afe3965c1
      https://github.com/llvm/llvm-project/commit/98033fdc50e61273b1d5c77ba5f0f75afe3965c1
  Author: Marco Elver <elver at google.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M compiler-rt/CMakeLists.txt

  Log Message:
  -----------
  sanitizer_common: Fix build for tests

It turns out that COMPILER_RT_TEST_COMPILER_CFLAGS is actually a string
that is being appended to and not a list.

Therefore, append the thread-safety flags to the string. Because CMake
separates list elements by ';' when turning into a string, also
substitute ';' with ' '.

Reviewed By: hctim

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




More information about the All-commits mailing list