Ensure that the stubs directory does not end up in the rpath (#17619)

This commit is contained in:
Harmen Stoppels 2020-07-24 17:02:58 +02:00 committed by GitHub
parent d3e4b14997
commit 54bce00d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ def libs(self):
# CUDA 10.0 provides Compatability libraries for running newer versions
# of CUDA with older drivers. These do not work with newer drivers.
for lib in libs:
if 'compat' not in lib.split(os.sep):
parts = lib.split(os.sep)
if 'compat' not in parts and 'stubs' not in parts:
filtered_libs.append(lib)
return LibraryList(filtered_libs)