|
Luke Mauldin |
at Aug 20, 2013 at 7:39 pm
|
⇧ |
| |
Thank you, that works great.
When running "go build", is there a way to pass specific parameters to the
compiler and/or linker? I attempted running "go build -gcflags '-m'" but I
didn't see any of the optimization decisions on the console.
Luke
On Tuesday, August 20, 2013 2:26:15 PM UTC-5, Dmitry Vyukov wrote:On Tue, Aug 20, 2013 at 11:19 PM, Luke Mauldin wrote:
I am sure I am probably missing something pretty simple but I can't figure
it out. I am using Go 1.1.2 on Windows 7 X64 and I can compile a file "go
build main.go" without any problems. However, if I run the command "go tool
6g main.go", I get errors: can't find import: "xxxx"
Why would a "go build" work but "go tool 6g" throw an error?
you need to pass additional flags to compiler
run go build -v -x -work
and it will show you the commands it executes, in particular flags to
compiler
--
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+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.