summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-10-10 21:48:47 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-10-10 21:48:47 -0400
commita3537aa32a9069c0d740931010de32f0f184583f (patch)
treee00c8028af58c9b62ed8173f7433fe374bb44738
parentd3e118a786971ac2e1d8f62e22dce7fa60fc3ce3 (diff)
Update darwin cfg attributes.
-rw-r--r--src/args.rs2
-rw-r--r--tests/tests.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs
index 40fe97fd..95bd5102 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -334,7 +334,7 @@ impl RawArgs {
} else if cfg!(windows) {
// On Windows, memory maps appear faster than read calls. Neat.
true
- } else if cfg!(darwin) {
+ } else if cfg!(target_os = "macos") {
// On Mac, memory maps appear to suck. Neat.
false
} else {
diff --git a/tests/tests.rs b/tests/tests.rs
index 60edb740..032bae00 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -778,7 +778,7 @@ clean!(regression_127, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
// See: https://github.com/BurntSushi/ripgrep/issues/131
//
// TODO(burntsushi): Darwin doesn't like this test for some reason.
-#[cfg(not(darwin))]
+#[cfg(not(target_os = "macos"))]
clean!(regression_131, "test", ".", |wd: WorkDir, mut cmd: Command| {
wd.create(".gitignore", "TopÑapa");
wd.create("TopÑapa", "test");