Skip to content

Commit b8da598

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/tests/compiletest.md

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ 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+
>
19+
> You can resolve it by tweaking the following settings:
20+
> `Privacy & Security -> Developer Tools -> Add Terminal (Or VsCode, etc.)`.
21+
22+
[zulip]: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20Is.20there.20any.20performance.20issue.20for.20MacOS.3F
23+
1424
`compiletest` may check test code for success, for runtime failure,
1525
or for compile-time failure.
1626
Tests are typically organized as a Rust source file with annotations in

0 commit comments

Comments
 (0)