-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrapper: Load libraries globally instead of relative to
$PWD
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.
- Loading branch information
Showing
1 changed file
with
9 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters