mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
fe3b7d1fcb
commit
df7699c43c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user