Conversation
This uses libllvm instead of the environment's compiler for compiling shaders to CPU targets.
|
Added In the shader-slang repository, only slang-test seems to explicitly link against slang-llvm. How is LLVM mode supposed to work? As libslang-llvm.so also does not seem to be loaded at runtime by libslang or slangc, only by slang-test. |
|
@niklaskorz yeah actually, as far as I'm aware, Slang pretty much only uses LLVM for FileCheck in testing. I'm not aware of any uses of LLVM in Slang other than testing (although I could be wrong). In that case do you think we should maybe just remove LLVM from Slang in Nixpkgs? |
|
OK never mind, I was incorrect; I asked Yong and he said:
So it seems like slang-llvm is indeed not meant to be used by libslang or slangc, but the intention is that others can link against @niklaskorz I don't see |
I see, in that case it might be best to always build it and move it to a separate output As for why the library is missing from the output, that is because the target is missing the |
|
Superseded by #437524. |
While reviewing #435962, I forgot that this fix is necessary when using
withLLVM, due to shader-slang/slang#8031.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.