-
Notifications
You must be signed in to change notification settings - Fork 8
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
glsl-optimizer spews warnings about invalid C++ #4
Comments
Which compiler and version are you using? Is this part of a gecko build, or standalone. In either case the env would be useful. I can't see this warning on a local build, but I don't have sccache-dist set up. I do however see another warning:
I'm hesitant to make fixes to glsl-optimizer, as it is based on mesa's source code and we want to be able to rebase it as easily as possible. My build script sets
Not sure why that was the case, but I have enabled issues now. |
This was part of a "standalone" build of
Does upstream take patches? It looked like
For better or worse, we propagate gecko's warning flags into the |
You are correct, upstream glsl-optimizer isn't being developed any more. It was itself a fork of (a very old version of) mesa, and our fork has been rebased on upstream mesa. This fixed a number of issues but was rather painful, so it would be good to avoid future pain as much as possible. That said, if it is indeed our best option so be it. 😄
glslopt-rs' build.rs acually tries to ignore these variables. The issue is that gecko's build system exports CFLAGS_$HOST and CFLAGS_$TARGET and, for non-cross-compiled builds where $HOST == $TARGET, the latter takes precedence. We want to build this as a host library, but the target cflags caused issues by making us include gecko headers, etc. Certainly not an ideal situation, and I wonder if a flag is making it through somehow. I think cc should log which variable name it chooses and the value of that variable when building. Could you post that portion of the build log? |
Hmm, now that I'm actually reading So maybe the solution is to set C(XX)FLAGS in build.rs to explicitly disable warnings. |
(Filing here because issues on
glsl-optimizer
are closed.)This code:
https://github.com/jamienicol/glsl-optimizer/blob/a9bdfcc8d80050e45e40d9cf806f3e38f339afd0/src/compiler/glsl/ir.h#L139-L174
spews warnings -- maybe just with
sccache-dist
-- becauseassume(this != NULL)
is trivially true:It'd be nice if compiling the optimizer wasn't generating voluminous output.
The text was updated successfully, but these errors were encountered: