rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

Add flags attribute to go_cross_binary

Open udf2457 opened this issue 1 year ago • 0 comments

It would be great if flags could be specified in go_cross_binary()

For example, a common flagset when compiling Go is -s -w -buildmode=pie.

However certain platforms (e.g. BSD) are incompatibble with -buildmode=pie.

Therefore when using a cross-compile mechanism such as go_cross_binary() it is naturally important to be able to specify flag differences.

udf2457 avatar Feb 11 '24 13:02 udf2457