You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior Compiler::Compile should succeed.
Additional context
The error does not occur if ShaderConductor is loaded from the top-level CMakeLists.txt. In the context of my project, this is not possible for me.
The text was updated successfully, but these errors were encountered:
Describe the bug
Crash trying to load dynamic library on Mac, if the library is loaded as part of another library using CMake.
To Reproduce
Steps to reproduce the behavior:
ShaderSrc
is C string of the input shaderOptions
left at defaultsTargetDesc::language = ShadingLanguage::Msl_macOS
TargetDesc::version = "1.0"
TargetDesc::asModule = true
Create a CMakeLists.txt in a folder named
shader-transpiler
with the following contents:Example
main.cpp
:mkdir build && cd build && cmake -G "Xcode" ..
Example.hlsl
in the build directory so the program can open it.shader-transpiler
target, and attempt to run it. The program will crash with the following error:The faulty line is:
ShaderConductor.cpp:145
Expected behavior
Compiler::Compile
should succeed.Additional context
The error does not occur if ShaderConductor is loaded from the top-level CMakeLists.txt. In the context of my project, this is not possible for me.
The text was updated successfully, but these errors were encountered: