Skip to content

Commit

Permalink
Merge pull request #1339 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Use print() function in both Python 2 and Python 3
  • Loading branch information
vitalybuka committed Nov 3, 2020
2 parents 693bf97 + 720e440 commit 50306f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions address-sanitizer/asan-glibc/asan-glibc-gcc-wrapper.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function

import os
import re
import shutil
Expand Down Expand Up @@ -94,14 +96,14 @@ def o():
args = [arg for arg in args if arg != '-Wl,-z,defs']

if AllowAsan(o()):
print >> sys.stderr, 'ASAN:', o()
print('ASAN:', o(), file=sys.stderr)
args.append('-fsanitize=address')
# Temporarily disable UAR. See comment asan-init-stub.c
args.append('--param')
args.append('asan-use-after-return=0')

if re.search(r'.so(|.\d)$', o()):
print >>sys.stderr, "ADDING STUB:", o()
print("ADDING STUB:", o(), file=sys.stderr)
args.append(ASAN_INIT_STUB)

args.append('-fno-omit-frame-pointer')
Expand Down

0 comments on commit 50306f3

Please sign in to comment.