about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-08-27 21:51:53 -0400
committerGitHub <noreply@github.com>2025-08-27 21:51:53 -0400
commitad42340e391f3625dbf5899da2901d398346fd72 (patch)
tree92c85c6bee32de827da6c885644b9824e3b1227d /compiler/rustc_codegen_llvm/src/back
parenta1c543e165a5fd7bd769a07707bb770aadb07786 (diff)
parent6e5a4275f7dca9ba13b4234b3fe821816753d924 (diff)
downloadrust-ad42340e391f3625dbf5899da2901d398346fd72.tar.gz
rust-ad42340e391f3625dbf5899da2901d398346fd72.zip
Rollup merge of #145746 - ivmarkov:fix-nofollow-espidf, r=ibraheemdev
Fix STD build failing for target_os = "espidf"

A regression from rust-lang/rust#142938

cc `@lolbinarycat`
cc `@ibraheemdev`

ESP-IDF (and a few other embedded Tier-3 systems) is considered `cfg(unix)`, but it does not have the `O_NOFOLLOW` flag because neither of its three supported filesystems (FATFS, LitteLF and Spiffs) has symbolic links in the first place.

What this fix does is to keep the `set_permissions_nofollow` method available and non-failing for ESP-IDF, but it behaves as if no `O_NONFOLLOW` was set. This should be fine as there is nothing to follow in the first place, as there are no symbolic links there.

EDIT: Also added the same fix for Horizon, as requested by `@Meziu.`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
0 files changed, 0 insertions, 0 deletions