• Martin Möhrmann's avatar
    internal/cpu: add invalid option warnings and support to enable cpu features · 3e0227f6
    Martin Möhrmann authored
    This CL adds the ability to enable the cpu feature FEATURE by specifying
    FEATURE=on in GODEBUGCPU. Syntax support to enable cpu features is useful
    in combination with a preceeding all=off to disable all but some specific
    cpu features. Example:
    
    GODEBUGCPU=all=off,sse3=on
    
    This CL implements printing of warnings for invalid GODEBUGCPU settings:
    - requests enabling features that are not supported with the current CPU
    - specifying values different than 'on' or 'off' for a feature
    - settings for unkown cpu feature names
    
    Updates #27218
    
    Change-Id: Ic13e5c4c35426a390c50eaa4bd2a408ef2ee21be
    Reviewed-on: https://go-review.googlesource.com/c/141800
    Run-TryBot: Martin Möhrmann <moehrmann@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    3e0227f6
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...