On Mon, Apr 4, 2022 at 3:49 PM arthurwil...@gmail.com
<arthurwilliammor...@gmail.com> wrote:
>
>
>
> On Sunday, April 3, 2022 at 10:35:04 PM UTC-5 Ian Lance Taylor wrote:
>>
>> On Sun, Apr 3, 2022 at 6:21 PM arthurwil...@gmail.com
>> <arthurwil...@gmail.com> wrote:
>> >
>> > I'm trying to build an unoptimized version of the standard library for 
>> > debugging.
>>
>> You can just use
>>
>> go build -gcflags=all="-N -l"
>>
>
> That gives this error:
> /Volumes/git/goroot/src (master)$ go build -gcflags=all="-N -l"
> no Go files in /Volumes/git/goroot/src

You have to run this wherever you are building your actual Go program.

What I mean is, if you want to "go build x.go" and you want to build
that with a standard library built for maximal debugging, then rn "go
build -gcflags=all="-N -l" x.go".  Any flags specified by
-gcflags=all="FLAGS" will be used to build the standard library as
well.  You don't need to build the standard library separately.

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/CAOyqgcW1ia11%3DTBGS5WJwCuf%2BJZ9aCh4UDRWxB8B9i32zV-6EQ%40mail.gmail.com.

Reply via email to