Skip to content

Commit

Permalink
Problem: Repository::new_named_item duplicate check on aarch64
Browse files Browse the repository at this point in the history
Tests pertaining to duplicate name fail in debug mode on aarch64,
the OS error is never returned.

Solution: use FastISel instead of GlobalISel

Tracking issue has been filed with Rust:
rust-lang/rust#50516
  • Loading branch information
yrashk committed May 17, 2018
1 parent 9a1c90d commit 38bfb95
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://github.com/rust-lang/rust/issues/50516
[target.'cfg(all(debug_assertions, target_arch = "aarch64"))']
rustflags = ["-C", "llvm-args=-fast-isel"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Yurii Rashkovskii <me@yrashk.com>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2018-05-07T20:16:50.974Z
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Problem: workaround for std::fs:create_dir not failing on existing directory on aarch64, debug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Yurii Rashkovskii <me@yrashk.com>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2018-05-07T20:16:50.974Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
std::fs::create_dir does not fail on existing directory on aarch64, when built in debug, leading to failing tests and change in behavior (item with the same name can be created more than once). This issue has been resolved with a workaround handling this special case specifically in this configuration.

However, this is not the most beautiful solution.

Tracking issue filed with Rust: https://github.com/rust-lang/rust/issues/50516

0 comments on commit 38bfb95

Please sign in to comment.