about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-13 15:57:10 +0100
committerGitHub <noreply@github.com>2025-01-13 15:57:10 +0100
commitb8dab0ead093938179385c9f1e73788264517eaf (patch)
treeccabd48339e003b2db503fec7e5b7dacf5094cc3 /compiler/rustc_codegen_llvm/src
parent957247d5461e273e6259a61c6debc18bf8652615 (diff)
parent1107382a18c7e70d6c76584ee2c1bcfbfb5115f9 (diff)
downloadrust-b8dab0ead093938179385c9f1e73788264517eaf.tar.gz
rust-b8dab0ead093938179385c9f1e73788264517eaf.zip
Rollup merge of #135405 - Ayush1325:path-is-absolute, r=tgross35
path: Move is_absolute check to sys::path

I am working on fs support for UEFI [0], which similar to windows has prefix components, but is not quite same as Windows. It also seems that Prefix is tied closely to Windows and cannot really be extended [1].

This PR just tries to remove coupling between Prefix and absolute path checking to allow platforms to provide there own implementation to check if a path is absolute or not.

I am not sure if any platform other than windows currently uses Prefix, so I have kept the path.prefix().is_some() check in most cases.

[0]: https://github.com/rust-lang/rust/pull/135368
[1]: https://github.com/rust-lang/rust/issues/52331#issuecomment-2492796137
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions