diff options
author | Michael Cheng <michael.cheng@intel.com> | 2021-02-11 09:27:41 -0800 |
---|---|---|
committer | Manoj Gupta <manojgupta@chromium.org> | 2021-02-11 20:24:22 +0000 |
commit | 1f5d6951b5ffb60b7eee6128994f22791c07dc7b (patch) | |
tree | 566603d63534cc7fa888fcbc09a9ec846a87bfc4 /compiler_wrapper | |
parent | 3dd52af0c32e1709697324f15c2d67c0950ee31d (diff) | |
download | toolchain-utils-1f5d6951b5ffb60b7eee6128994f22791c07dc7b.tar.gz |
gcc: Map Alderlake to Skylake
GCC 10 does not support march=alderlake. This CL
maps alderlake to skylake
BUG=chromium:1167265
TEST=Verify unit tests pass
Change-Id: I8fc694650fe0cb883628fb566d0536d1d550df43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2689623
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler_wrapper')
-rw-r--r-- | compiler_wrapper/gcc_flags.go | 1 | ||||
-rw-r--r-- | compiler_wrapper/gcc_flags_test.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler_wrapper/gcc_flags.go b/compiler_wrapper/gcc_flags.go index 7141d14c..1f4a6491 100644 --- a/compiler_wrapper/gcc_flags.go +++ b/compiler_wrapper/gcc_flags.go @@ -11,6 +11,7 @@ func processGccFlags(builder *commandBuilder) { // Conversion for flags supported by clang but not gcc. clangToGcc := map[string]string{ + "-march=alderlake": "-march=skylake", "-march=goldmont": "-march=silvermont", "-march=goldmont-plus": "-march=silvermont", "-march=skylake": "-march=corei7", diff --git a/compiler_wrapper/gcc_flags_test.go b/compiler_wrapper/gcc_flags_test.go index 8de07a47..856557d1 100644 --- a/compiler_wrapper/gcc_flags_test.go +++ b/compiler_wrapper/gcc_flags_test.go @@ -34,6 +34,7 @@ func TestConvertClangToGccFlags(t *testing.T) { in string out string }{ + {"-march=alderlake", "-march=skylake"}, {"-march=goldmont", "-march=silvermont"}, {"-march=goldmont-plus", "-march=silvermont"}, {"-march=skylake", "-march=corei7"}, |