Skip to content

Commit 01ff137

Browse files
committed
_content/doc/articles/race_detector: document windows C compiler version requirements
Add a note documenting the requirement (as of Go 1.21) on Windows that the installed C compiler support mingw-w64 version 8 or later, which provides libsynchronization.a. Fixes golang/go#61058. Change-Id: I891d7d32df41387e1671a1ec9bac722c47a68ee5 Reviewed-on: https://go-review.googlesource.com/c/website/+/508461 Reviewed-by: Quim Muntal <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Than McIntosh <[email protected]>
1 parent 487a70a commit 01ff137

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

_content/doc/articles/race_detector.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,18 @@ <h2 id="Requirements">Requirements</h2>
422422
<code>darwin/arm64</code>, and <code>windows/amd64</code>.
423423
</p>
424424

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+
425437
<h2 id="Runtime_Overheads">Runtime Overhead</h2>
426438

427439
<p>

0 commit comments

Comments
 (0)