From ea0da0c4e4a1ba905bb6a1977839279fe40891bf Mon Sep 17 00:00:00 2001 From: Vasily Leonenko Date: Wed, 7 Jul 2021 15:15:55 +0300 Subject: [PATCH] Tests: temp fix for failing tests on newer gcc versions This is a temporary fix for failing tests on newer gcc versions. Note that older gcc versions doesnot support -fcf-protection option, so this commit will cause failure on these versions. Related issues: https://github.com/facebookincubator/BOLT/issues/117 https://github.com/facebookincubator/BOLT/issues/181 Vasily Leonenko, Advanced Software Technology Lab, Huawei --- bolt/test/lit.cfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bolt/test/lit.cfg.py b/bolt/test/lit.cfg.py index e03a267d516b..58f9369511d7 100644 --- a/bolt/test/lit.cfg.py +++ b/bolt/test/lit.cfg.py @@ -44,8 +44,8 @@ config.substitutions.append(('%host_cc', config.host_cc)) config.substitutions.append(('%host_cxx', config.host_cxx)) -config.substitutions.append(('%cflags', '-no-pie')) -config.substitutions.append(('%cxxflags', '-no-pie')) +config.substitutions.append(('%cflags', '-no-pie -fcf-protection=none')) +config.substitutions.append(('%cxxflags', '-no-pie -fcf-protection=none')) tool_dirs = [config.llvm_tools_dir, config.test_source_root]