Code Quality: Improved MSVC build

This commit is contained in:
Philippe Tillet
2015-07-21 16:50:07 -07:00
parent 4fe525631c
commit 1fa2ae648f
5 changed files with 10 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ def main():
def find_opencl():
cvars = sysconfig.get_config_vars()
is_on_android = '-mandroid' in cvars['PY_CFLAGS']
lib = find_library('OpenCL', '/opt/adreno-driver*/lib' if is_on_android else '/opt/AMDAPPSDK*/lib/x86_64')
lib = find_library('OpenCL', '' if is_on_android else '/opt/AMDAPPSDK*/lib/x86_64')
return {'include': '', 'lib': dirname(lib)} if lib else None
def find_in_path(name, path):