[all-commits] [llvm/llvm-project] f0303b: [gcov] Make .gcno/.gcda paths absolute

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu May 18 00:27:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0303bd67d32b41d6502d2ff5fa825a9d21acf96
      https://github.com/llvm/llvm-project/commit/f0303bd67d32b41d6502d2ff5fa825a9d21acf96
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/coverage.c
    M clang/test/Driver/working-directory.c

  Log Message:
  -----------
  [gcov] Make .gcno/.gcda paths absolute

This restores 737a452173a67f88d111f27b688bf3696c260db9 (2013) which was removed
by my a07b135ce0c0111bd83450b5dc29ef0381cdbc39.
This behavior turns out to be depended on by `bazel coverage`.

Add a `PWD=/proc/self/cwd %clang -### -c --coverage %s -o foo/bar.o` test.




More information about the All-commits mailing list