[all-commits] [llvm/llvm-project] 780031: [CMake][compiler-rt] Replace Windows backslashes w...

Petr Hosek via All-commits all-commits at lists.llvm.org
Tue Feb 4 22:36:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7800310cb50408ba42f5321f7de956fb69a9efda
      https://github.com/llvm/llvm-project/commit/7800310cb50408ba42f5321f7de956fb69a9efda
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-02-04 (Tue, 04 Feb 2020)

  Changed paths:
    M compiler-rt/cmake/Modules/CompilerRTUtils.cmake

  Log Message:
  -----------
  [CMake][compiler-rt] Replace Windows backslashes with CMake ones

XRay builds uses llvm-config to obtain the ldflags and libs and then
passes those to CMake. Unfortunately, this breaks on Windows because
CMake tries to interpret backslashes followed by certain characters
as flags. We need to rewrite these into forward slashes that are used
by CMake (even on Windows).

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




More information about the All-commits mailing list