Alternative way of setting cgocheck=0

90 views
Skip to first unread message

SrimanthG

unread,
Nov 16, 2017, 12:03:51 AM11/16/17
to golang-nuts
Hello,
Is there any programmatic way of disabling cgo runtime checks? 

The documentation says to set environment variable "GODEBUG=cgocheck=0". 
However, this does not work for me as I do not control the environment.
Hoping there is a programmatic way for disabling the runtime checks?

Regards,
Srimanth

Ian Lance Taylor

unread,
Nov 16, 2017, 12:06:58 AM11/16/17
to SrimanthG, golang-nuts
Sorry, there is not.

Ian

Srimanth Gunturi

unread,
Nov 16, 2017, 12:47:35 PM11/16/17
to Ian Lance Taylor, golang-nuts
My environment is unable to accept this format due to the double '=' in the same key/value.
Is there an alternate way of expressing the same environment variable - like 'GODEBUG=cgocheck:0' or something like that?


Ian Lance Taylor

unread,
Nov 16, 2017, 5:16:05 PM11/16/17
to Srimanth Gunturi, golang-nuts
On Thu, Nov 16, 2017 at 9:46 AM, Srimanth Gunturi
<srimanth...@blippar.com> wrote:
>
> My environment is unable to accept this format due to the double '=' in the
> same key/value.

That's really odd.

> Is there an alternate way of expressing the same environment variable - like
> 'GODEBUG=cgocheck:0' or something like that?

Unfortunately there is not.

Ian
Reply all
Reply to author
Forward
0 new messages