mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Update example to apply to all packages
parent
dac828df86
commit
49322a5499
@ -18,9 +18,9 @@ These three conditions are only very rarely all true at the same time.
|
||||
|
||||
## Example
|
||||
|
||||
To build a program with both mitigations (and any future mitigations) enabled, use:
|
||||
To build a program with both mitigations (and any future mitigations) enabled in all packages, use:
|
||||
|
||||
go build -gcflags=-spectre=all -asmflags=-spectre=all program
|
||||
go build -gcflags=all=-spectre=all -asmflags=all=-spectre=all program
|
||||
|
||||
## References
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user