This is an archive of the discontinued LLVM Phabricator instance.

[windows] Use a well-known path for ComSpec if we fail to retrieve it
ClosedPublic

Authored by stella.stamenova on Jul 17 2018, 1:29 PM.

Details

Summary

Right now we always try to retrieve ComSpec and if we fail, we give up. This rarely fails, but we can update the logic so that we fail even less frequently. Since there is a well-known path (albeit not always correct), try the path when we failed to retrieve it. Note that on other platforms, we generally just return a well-known path without any checking.

Diff Detail

Repository
rL LLVM

Event Timeline

zturner accepted this revision.Jul 17 2018, 1:39 PM
This revision is now accepted and ready to land.Jul 17 2018, 1:39 PM
labath accepted this revision.Jul 18 2018, 12:52 AM
This revision was automatically updated to reflect the committed changes.