Hacker News new | past | comments | ask | show | jobs | submit login

  For example, to disable compiler optimizations and inlining,
  you can use the following the gcflags.

  $ go build -gcflags="-N -I"
The flag to disable inlining appears to be incorrect.

It should be `-l` and not `-I`, such that it reads:

  $ go build -gcflags="-N -l"



Whoops, fixed the typo. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: