Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrapper: Load libraries globally instead of relative to $PWD #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarijnS95
Copy link
Member

Fixes #68, CC @expenses, please check if this fixes things for you!

There's no real reason to force ./ in default paths when the library is more and more likely to be installed on the system via PATH (on Windows it's in the Vulkan SDK, on Linux directx-shader-compiler is a common package).

Furthermore, stop appending this path to the optional lib_path argument, if that lib_path doesn't exist as a file. In the case that a user specifies a (relative) path that doesn't exist, this throws an obscure error that libdxcompiler.so/./libdxcompiler.so doesn't exist because we appended a precooked filename a second time.

There's no real reason to force `./` in default paths when the library
is more and more likely to be installed on the system via `PATH` (on
Windows it's in the Vulkan SDK, on Linux `directx-shader-compiler` is
a common package).

Furthermore, stop appending this path to the optional `lib_path`
argument, if that `lib_path` doesn't **exist** as a file.  In the case
that a user specifies a (relative) path that doesn't exist, this throws
an obscure error that `libdxcompiler.so/./libdxcompiler.so` doesn't
exist because we appended a precooked filename a second time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux - search common locations for libdxcompiler.so
1 participant