Commit f98d9deb authored by André Anjos's avatar André Anjos 💬
Browse files

Allows searching in architecture specific header paths

parent 1bdf4f6e
......@@ -117,11 +117,20 @@ def find_header(name, subpaths=None, prefixes=None):
headerpaths = ['include']
if platform.architecture()[0] == '32bit':
headerpaths.append(os.path.join('include', 'i386-linux-gnu'))
headerpaths.append(os.path.join('include', 'x86_64-linux-gnu'))
# Exhaustive combination of paths and subpaths
if subpaths:
my_subpaths = [os.path.join('include', k) for k in subpaths]
my_subpaths = []
for hp in headerpaths:
my_subpaths += [os.path.join(hp, k) for k in subpaths]
my_subpaths = ['include']
my_subpaths = headerpaths
return find_file(name, my_subpaths, prefixes)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment