aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper
diff options
context:
space:
mode:
authorEd Baker <edward.baker@intel.com>2019-10-03 09:47:13 -0700
committerManoj Gupta <manojgupta@chromium.org>2020-03-20 17:41:57 +0000
commitf2bba3e2c1071e9965d9702da29ea4fecd7c9040 (patch)
tree8280b665058b1924105c207316249e3cf20ce20b /compiler_wrapper
parent66ee2dc562b90cfbf21c41d477e017dfd4ba9e12 (diff)
downloadtoolchain-utils-f2bba3e2c1071e9965d9702da29ea4fecd7c9040.tar.gz
gcc: Add tigerlake to corei7 mapping
GCC 4.9 does not support new architecture flags such as skylake or tigerlake. Bug=b:141363149 TEST=Verify unit tests pass cd ${chromium_os}/src/third_party/toolchain-utils export PYTHONPATH=$(readlink -f .):$PYTHONPATH ./run_tests_for.py ./compiler_wrapper/* Change-Id: I63a74cb8fa6d2b40a9890a1e61f5be7917321975 Signed-off-by: Edward Baker <edward.baker@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1959943 Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler_wrapper')
-rw-r--r--compiler_wrapper/gcc_flags.go1
-rw-r--r--compiler_wrapper/gcc_flags_test.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler_wrapper/gcc_flags.go b/compiler_wrapper/gcc_flags.go
index 397bf82d..7141d14c 100644
--- a/compiler_wrapper/gcc_flags.go
+++ b/compiler_wrapper/gcc_flags.go
@@ -14,6 +14,7 @@ func processGccFlags(builder *commandBuilder) {
"-march=goldmont": "-march=silvermont",
"-march=goldmont-plus": "-march=silvermont",
"-march=skylake": "-march=corei7",
+ "-march=tigerlake": "-march=corei7",
"-march=tremont": "-march=silvermont",
}
diff --git a/compiler_wrapper/gcc_flags_test.go b/compiler_wrapper/gcc_flags_test.go
index 8f8e9023..8de07a47 100644
--- a/compiler_wrapper/gcc_flags_test.go
+++ b/compiler_wrapper/gcc_flags_test.go
@@ -37,6 +37,7 @@ func TestConvertClangToGccFlags(t *testing.T) {
{"-march=goldmont", "-march=silvermont"},
{"-march=goldmont-plus", "-march=silvermont"},
{"-march=skylake", "-march=corei7"},
+ {"-march=tigerlake", "-march=corei7"},
{"-march=tremont", "-march=silvermont"},
}