[all-commits] [llvm/llvm-project] 62c372: [profile] Add %t LLVM_PROFILE_FILE option to subst...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Fri Sep 25 09:40:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 62c372770d2e87f3e882a20d43c6814e6c4fe0f5
      https://github.com/llvm/llvm-project/commit/62c372770d2e87f3e882a20d43c6814e6c4fe0f5
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M clang/docs/SourceBasedCodeCoverage.rst
    M compiler-rt/lib/profile/InstrProfilingFile.c
    A compiler-rt/test/profile/instrprof-tmpdir.c

  Log Message:
  -----------
  [profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR

Add support for expanding the %t filename specifier in LLVM_PROFILE_FILE
to the TMPDIR environment variable. This is supported on all platforms.

On Darwin, TMPDIR is used to specify a temporary application-specific
scratch directory. When testing apps on remote devices, it can be
challenging for the host device to determine the correct TMPDIR, so it's
helpful to have the runtime do this work.

rdar://68524185

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




More information about the All-commits mailing list