Bug 1561350 - Fix libclang detection for clang-cl 9 r=glandium

In the clang-cl 9 case where we have semicolon-separated paths, the `dirs` variable is never read, so the libclang detection fails.

Differential Revision: https://phabricator.services.mozilla.com/D35825

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Major 2019-06-25 20:39:01 +00:00
parent fe3b7d1fcb
commit df7699c43c

View File

@ -152,7 +152,7 @@ def bindgen_libclang_path(libclang_path, clang, library_name_info, host):
# To make matters complicated, clang before version 9 uses `:`
# separate between paths (and `;` in newer versions)
if pathsep in value:
dirs = value.split(pathsep)
candidates.extend(value.split(pathsep))
else:
for part in value.split(':'):
# Assume that if previous "candidate" was of length 1,