Skip to content

Commit a62c7a1

Browse files
committed
add SIP solution for MacOS users
1 parent c1d92ca commit a62c7a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/tests/compiletest.md

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ efficient test execution (parallel execution is supported),
1111
and allows the test author to configure behavior and expected results of both
1212
individual and groups of tests.
1313

14+
> NOTE:
15+
> For macOS users, `SIP` (System Integrity Protection) [may consistently
16+
> check the compiled binary by sending network requests to Apple][zulip],
17+
> so you may get a huge performance degradation when running tests.
18+
> You can resolve it by tweaking the following settings:
19+
> `Privacy & Security -> Developer Tools -> Add Terminal (Or VsCode, etc.)`.
20+
21+
[zulip]: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20Is.20there.20any.20performance.20issue.20for.20MacOS.3F
22+
1423
`compiletest` may check test code for success, for runtime failure,
1524
or for compile-time failure.
1625
Tests are typically organized as a Rust source file with annotations in

0 commit comments

Comments
 (0)