Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Tests: temp fix for failing tests on newer gcc versions
Browse files Browse the repository at this point in the history
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:
#117
#181

Vasily Leonenko,
Advanced Software Technology Lab, Huawei
  • Loading branch information
Vasily Leonenko committed Jul 7, 2021
1 parent 4627ce0 commit ea0da0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bolt/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ea0da0c

Please sign in to comment.