Hi Ian, I see, thanks for your quick response! I'm going to use gcc by installing mingw through chocolatey instead.
Makoto 2021年9月14日(火) 9:37 Ian Lance Taylor <i...@golang.org>: > On Mon, Sep 13, 2021 at 4:35 PM Makoto Shimazu <m.shim...@prog-8.com> > wrote: > > > > I'm now configuring CircleCI to build our tools on Windows, and trying > to use cl.exe for it because CircleCI's Windows image has Visual Studio out > of the box. > > However, it didn't work well so far because the command line flags > passed to cl.exe doesn't seem to be for cl.exe. > > Here's the error I got: > > > > ``` > > # runtime/cgo > > Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30133 for x64 > > Copyright (C) Microsoft Corporation. All rights reserved. > > > > cl : Command line error D8021 : invalid numeric argument '/Werror' > > make: *** [Makefile:15: build-windows-amd64] Error 2 > > ``` > > > > I found a few related CLs to support cl.exe that are still in review: > > https://go-review.googlesource.com/c/go/+/133946/ > > but it seems to be stopped. > > > > Can I ask experts here about the latest status of supporting cl.exe, or > any tips? > > I think you have correctly identified the status: there was some work > to support it, but it was never completed. > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAD%3D0nYJvJ0i22u5uMms1oYWoK%2BDCodHN%2BpaVwyVwr6hq3%2BOTSA%40mail.gmail.com.