mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
[waf] Use {str,bytes}.decode to make it compatible with Python 2/3
This commit is contained in:
parent
044ef0b309
commit
ea5c89e956
2
wscript
2
wscript
@ -201,7 +201,7 @@ def build(bld):
|
|||||||
if bld.env['use_system_clang']:
|
if bld.env['use_system_clang']:
|
||||||
rpath = []
|
rpath = []
|
||||||
|
|
||||||
output = subprocess.check_output(['clang', '-###', '-xc', '/dev/null'], stderr=subprocess.STDOUT)
|
output = subprocess.check_output(['clang', '-###', '-xc', '/dev/null'], stderr=subprocess.STDOUT).decode()
|
||||||
match = re.search(r'"-resource-dir" "([^"]*)"', output, re.M | re.I)
|
match = re.search(r'"-resource-dir" "([^"]*)"', output, re.M | re.I)
|
||||||
if match:
|
if match:
|
||||||
default_resource_directory = match.group(1)
|
default_resource_directory = match.group(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user