This is an archive of the discontinued LLVM Phabricator instance.

[profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR
ClosedPublic

Authored by vsk on Sep 8 2020, 2:50 PM.

Details

Summary

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

Diff Detail

Event Timeline

vsk created this revision.Sep 8 2020, 2:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2020, 2:50 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vsk requested review of this revision.Sep 8 2020, 2:50 PM
vsk updated this revision to Diff 290590.Sep 8 2020, 2:55 PM
  • Document the new option.
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2020, 2:55 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ejvaughan accepted this revision.Sep 24 2020, 5:19 PM

Changes look good to me. Thanks for implementing this, Vedant!

This revision is now accepted and ready to land.Sep 24 2020, 5:19 PM
This revision was landed with ongoing or failed builds.Sep 25 2020, 9:40 AM
This revision was automatically updated to reflect the committed changes.