This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -remap: Should we remap before / after simplification?


> IMHO, you should only simplify a pathname when you can prove the
> simplified path and the original one get you the same file.

Or if you can use the OS to make the simplification for you.
I.e. get the current working directory, cd to the basename of the
file, get the current directory for the simplified basename of the
file (might want to check if it's really simpler...), and cd back
to the original directory.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]