-
Notifications
You must be signed in to change notification settings - Fork 712
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
llvm::errs() doesn't do anything in release builds on Linux, in libdxcompiler.so #6774
Comments
Seeing as this only affects libdxcompiler.so this might be on our end? |
Update. It affects Linux release builds when:
|
I suspect what you’re seeing here is that dxcompiler reroutes llvm::errs to an output stream that is surfaced through the API as DirectXShaderCompiler/include/dxc/dxcapi.h Line 727 in a54abe8
That allows the caller to control where the output gets printed to, and observes the general best practice of not having shared libraries write to stdout or stderr. |
@llvm-beanz / @dneto0 - is there work remaining for this issue? |
@dneto0 - if we, or you, need to do something here then please feel free to reopen. |
Description
I generally use Linux to develop DXC.
When I debug issues in the compiler, I often use llvm::errs().
Unfortunately, llvm::errs() doesn't do anything on release builds in Linux, when I use libdxcompiler.so
I've tried tracing through but haven't found the reason.
Steps to Reproduce
Build libdxcompiler.so on Linux.
(I'll fill in details below)
Actual Behavior
doesn't print.
Environment
DXC git d915232
The text was updated successfully, but these errors were encountered: