We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 487a70a commit 01ff137Copy full SHA for 01ff137
_content/doc/articles/race_detector.html
@@ -422,6 +422,18 @@ <h2 id="Requirements">Requirements</h2>
422
<code>darwin/arm64</code>, and <code>windows/amd64</code>.
423
</p>
424
425
+<p>
426
+ On Windows, the race detector runtime is sensitive to the
427
+ version of the C compiler installed; as of Go 1.21, building
428
+ a program with <code>-race</code> requires a C compiler that
429
+ incorporates version 8 or later of the <code>mingw-w64</code>
430
+ runtime libraries. You can test your C compiler by invoking it
431
+ with the arguments
432
+ <code>--print-file-name libsynchronization.a</code>. A newer
433
+ compliant C compiler will print a full path for this library,
434
+ whereas older C compilers will just echo the argument.
435
+</p>
436
+
437
<h2 id="Runtime_Overheads">Runtime Overhead</h2>
438
439
<p>
0 commit comments