Merge pull request #3558 from BernardXiong/fix_gcc_version_issue

[tools] fix c99/siginfo_t issue caused by gcc_version
This commit is contained in:
Bernard Xiong 2020-04-24 12:06:37 +08:00 committed by GitHub
commit bc7d903ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ def VersionCmp(ver1, ver2):
def GCCC99Patch(cflags): def GCCC99Patch(cflags):
import building import building
gcc_version = building.GetDepend('GCC_VERSION') gcc_version = building.GetDepend('GCC_VERSION_STR')
if gcc_version: if gcc_version:
gcc_version = gcc_version.replace('"', '') gcc_version = gcc_version.replace('"', '')
if VersionCmp(gcc_version, "4.8.0") == 1: if VersionCmp(gcc_version, "4.8.0") == 1: