keith added a comment.

In D111457#3066508 <https://reviews.llvm.org/D111457#3066508>, @mstorsjo wrote:

> Wouldn't this one also be solved pretty much the same, but differently, by 
> changing `if (llvm::sys::path::is_absolute(RemappedFile)) {` into 
> `is_absolute_gnu`?

I think it //could// but also users could still remap to native window's paths, 
so likely we'd want this test as well I think either way?

> Since we're remapping debug paths, it's plausible that the target path can be 
> a different style (when cross compiling, where debug prefix remapping is 
> kinda important), and then it's probably good to use a more lax definition of 
> whether a path is absolute. (Alternatively, we maybe should try to detect the 
> kind of path used and use the appropriate style as argument to `is_absolute`, 
> but I don't think that necessarily helps here.)

Good point here, I could definitely see wanting to support the entire matrix of 
host windows paths vs not, and target windows paths vs not, but I think that 
would require significantly more changes for other places that call 
`llvm::sys::path::*` APIs and also use the default `native` argument (I'm not 
sure how difficult this would be, but it would require a bit of auditing)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111457/new/

https://reviews.llvm.org/D111457

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to