This is an archive of the discontinued LLVM Phabricator instance.

lit: Don't make with_environment() change case of existing PATH entries.
Needs ReviewPublic

Authored by thakis on Apr 15 2020, 12:00 PM.

Details

Reviewers
hans
Summary

This is an alternative fix for https://reviews.llvm.org/D57343.
Instead of normcase()ing in which() in addition to in
with_environment(), consistently don't do it in both places.

Since normcase() is lossy (the original, likely "true" on-disk case
is lost), only computing a normcase() in-memory while comparing
seems overall less surprising.

No intended behavior change, except that binaries returned by which()
will now have on-disk case again, like before D57343.

Diff Detail

Event Timeline

thakis created this revision.Apr 15 2020, 12:00 PM