Use argv[0] (the first file name) instead of 'c' as the prefix for the cashed binary. #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey there. Here's another change that I made for myself. Feel free to merge if you like it.
The idea is to change the cashed file names for greater recognizably and a chance to auto-complete the file name.
This is useful if one wants to debug, trace, or do something else with the cached file instead of running it, but one does not want to take too much time figuring out which file is the one you want.
For example, the cache directory might currently look like this:
But with this change, the same directory would look like this:
Sure, then can be multiple cashed binaries for the same file name at the same time, but I feel like this helps in some cases. Modified date helps to disambiguate.
I chose to remove the
c
prefix because, by default, the container folder already indicates that thec
tool is responsible for these files.I added the
.hash_
part so that, at quick glance, it can be noted that following string is meant to be a hash and that this is not some sort of file with multiple extensions.All tests pass.
Have a nice day!