mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
compile arg touchup
This commit is contained in:
parent
ba3ccb7635
commit
ffc513763f
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
@ -118,12 +118,17 @@ if not OS == "win":
|
|||
boosttype = 'nomt'
|
||||
else:
|
||||
boosttype = 'mt'
|
||||
removals = ['-g', '-Wstrict-prototypes']
|
||||
|
||||
if python_version == '2.5':
|
||||
cv_opt = sysconfig.get_config_vars()["CFLAGS"]
|
||||
for removal in removals:
|
||||
cv_opt = cv_opt.replace(removal, " ")
|
||||
sysconfig.get_config_vars()["CFLAGS"] = ' '.join(cv_opt.split())
|
||||
else:
|
||||
cv_opt = sysconfig.get_config_vars()["OPT"]
|
||||
for removal in removals:
|
||||
cv_opt = cv_opt.replace(removal, " ")
|
||||
sysconfig.get_config_vars()["OPT"] = ' '.join(cv_opt.split())
|
||||
else:
|
||||
boosttype = 'mt'
|
||||
|
|
Loading…
Add table
Reference in a new issue