Details
Diff Detail
Event Timeline
Using denormalize = false while getting the executable path was a hacky workaround. This feels more correct (and is probably why m_syntax was added in the first place).
| source/Host/common/FileSpec.cpp | ||
|---|---|---|
| 818 | I tried putting this (and the one at line 614) in an unnamed namespace, but the resulting executable couldn't even run. Bug in MSVC? | |
| source/Host/common/FileSpec.cpp | ||
|---|---|---|
| 819–820 | Is it possible for the directory to end with a slash even when it has more than one character? For example, on Windows I can imagine the directory might be D:\. So I think we should check m_directory.ends_with or some simialr mechanism of looking at the last character, and not doing a full comparison. Regardless of platform, you don't want to have a double slash, so I think the check is valid regardless. | |
| source/Host/common/FileSpec.cpp | ||
|---|---|---|
| 819–820 | FileSpec::SetFile actually strips D:\ into D:, but I think it's a good idea to do that regardless. | |
I tried putting this (and the one at line 614) in an unnamed namespace, but the resulting executable couldn't even run. Bug in MSVC?