mirror of
https://github.com/reactos/ninja.git
synced 2025-03-05 01:38:44 +00:00
Use subprocess.call for Python 2.4 compatibility
This commit is contained in:
parent
1ff9ff485b
commit
69f9707e83
@ -27,10 +27,9 @@ parser.add_option('--verbose', action='store_true',
|
||||
(options, conf_args) = parser.parse_args()
|
||||
|
||||
def run(*args, **kwargs):
|
||||
try:
|
||||
subprocess.check_call(*args, **kwargs)
|
||||
except subprocess.CalledProcessError, e:
|
||||
sys.exit(e.returncode)
|
||||
returncode = subprocess.call(*args, **kwargs)
|
||||
if returncode != 0:
|
||||
sys.exit(returncode)
|
||||
|
||||
# Compute system-specific CFLAGS/LDFLAGS as used in both in the below
|
||||
# g++ call as well as in the later configure.py.
|
||||
|
Loading…
x
Reference in New Issue
Block a user