We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c7f702 commit 9343f41Copy full SHA for 9343f41
1 file changed
aimdb-embassy-adapter/build.rs
@@ -39,10 +39,10 @@ fn main() {
39
// Check for GNU ld specifically, avoiding false positives with lld or paths containing 'ld'
40
let linker_name = linker
41
.split('/')
42
- .last()
+ .next_back()
43
.unwrap_or(&linker)
44
.split('\\')
45
46
.unwrap_or(&linker);
47
48
if linker_name == "ld" || linker_name.starts_with("arm-") && linker_name.ends_with("-ld") {
0 commit comments