summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/main.cpp
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2016-04-19 20:26:32 +0200
committerAlejandro Piñeiro <[email protected]>2016-05-26 08:46:05 +0200
commit68c23d2d046b6419c7b3bd273278235095e29dae (patch)
tree7e56a1f1f67610c18c264a1e7122a354831927b3 /src/compiler/glsl/main.cpp
parent66ff04322e80d14d9b1c8a4d1ef8cf63440242af (diff)
glsl: add just-log option for the standalone compiler.
Add an option in order to ask to just print the InfoLog, without any header or separator. Useful if we want to use the standalone compiler to track only the warning/error messages. v2: all printfs goes on its own line (Ian Romanick) v3: rebasing: move just_log to standalone.h/cpp Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/main.cpp')
-rw-r--r--src/compiler/glsl/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/main.cpp b/src/compiler/glsl/main.cpp
index f65b1854d32..1e5e0febcd9 100644
--- a/src/compiler/glsl/main.cpp
+++ b/src/compiler/glsl/main.cpp
@@ -43,6 +43,7 @@ const struct option compiler_opts[] = {
{ "dump-hir", no_argument, &options.dump_hir, 1 },
{ "dump-lir", no_argument, &options.dump_lir, 1 },
{ "link", no_argument, &options.do_link, 1 },
+ { "just-log", no_argument, &options.just_log, 1 },
{ "version", required_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 }
};