On Wed, Aug 11, 2021 at 6:51 PM Cuong Manh Le <cuong.manhle...@gmail.com> wrote:
>
> > go run -gcflags="-lang=go1.17" main.go
> >
> > doesn't work either.
>
> Because what was run:
>
> ```
> /Users/cuonglm/sdk/gotip/pkg/tool/darwin_arm64/compile -o $WORK/b001/_pkg_.a 
> -trimpath "$WORK/b001=>" -shared -lang=go1.17 -p main -lang=go1.16 -complete 
> -buildid iarBRwadYSTC65zcr7pK/iarBRwadYSTC65zcr7pK -dwarf=false -D 
> _/Users/cuonglm/t -importcfg $WORK/b001/importcfg -pack ./main.go 
> $WORK/b001/_gomod_.go
> ```
>
> Notice "-lang" is passed two times, and the later "-lang=go1.16" wins.

Passing the default -lang option after the -gcflags seems like a bug, though.

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/CAOyqgcWz8SEYRfWXUhM13XQtUnx39qQ_QzsKWFNyZpkdrWkKeg%40mail.gmail.com.

Reply via email to