projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832dfa5
)
Don't link shaders by default
author
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 18 Jun 2010 02:51:48 +0000
(19:51 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 18 Jun 2010 02:51:48 +0000
(19:51 -0700)
Add a command line option to trigger linking. This "fixes" all the
failing test cases. Oops.
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index 48aa51f28216ce02aa79c2a82c4a34dae77bcb99..c7b8cf5a214836b82e9d0c2df6eb422d4a8d33fe 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-90,10
+90,12
@@
usage_fail(const char *name)
int dump_ast = 0;
int dump_lir = 0;
+int do_link = 0;
const struct option compiler_opts[] = {
{ "dump-ast", 0, &dump_ast, 1 },
{ "dump-lir", 0, &dump_lir, 1 },
+ { "link", 0, &do_link, 1 },
{ NULL, 0, NULL, 0 }
};
@@
-214,7
+216,7
@@
main(int argc, char **argv)
}
}
- if (
status == EXIT_SUCCESS)
{
+ if (
(status == EXIT_SUCCESS) && do_link)
{
link_shaders(&whole_program);
status = (whole_program.LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE;
}