-
Notifications
You must be signed in to change notification settings - Fork 338
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
glslc writes bad dependency file if -o -
#327
Comments
versalinyaa
added a commit
to versalinyaa/shaderc
that referenced
this issue
Mar 22, 2017
If glslc is given option '-o -' and one of the -M* dependency options, then it wrote an incorrect dependency file. For example: $ glslc -MD -S -o - a.glsl | sed ... $ ls -.d a.glsl $ cat ./-.d -: a.glsl It doesn't make sense to write a dependency file when the compilation output is stdout. So catch the error while validating command line flags, emit a helpful error message, and fail. Fixes: google#327
More investigation. I think glslc should allow |
NEVERMIND. glslc correctly behaves the same as gcc when given
|
My favourite kind of bug. :-) Thanks for the explanation. Yes, we used gcc as the model for this feature. I'm glad we are close enough to it in behaviour. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If glslc is given option '-o -' and one of the -M* dependency
options, then it wrote an incorrect dependency file. For example:
It doesn't make sense to write a dependency file when the compilation
output is stdout. So glslc should catch this error when parsing the command line flags.j
The text was updated successfully, but these errors were encountered: