1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/devel/ninja/files/patch-configure.py
Grzegorz Blach 743a2d9f8d Fix build with Python 3
PR:		196402
Submitted by:	Kevin Zheng (kevinz5000 <at> gmail <dot> com)
2015-01-18 20:35:19 +00:00

21 lines
747 B
Python

--- configure.py.orig 2014-11-24 18:37:47.000000000 +0100
+++ configure.py 2015-01-18 21:26:42.000000000 +0100
@@ -164,7 +164,7 @@
"""Run a subcommand, quietly. Prints the full command on error."""
try:
subprocess.check_call(cmdline, shell=True)
- except subprocess.CalledProcessError, e:
+ except subprocess.CalledProcessError:
print('when running: ', cmdline)
raise
@@ -297,7 +297,7 @@
cflags += ['/Ox', '/DNDEBUG', '/GL']
ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF']
else:
- cflags = ['-g', '-Wall', '-Wextra',
+ cflags = ['-Wall', '-Wextra',
'-Wno-deprecated',
'-Wno-unused-parameter',
'-fno-rtti',