<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 21, 2016 at 4:58 AM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Sep 16, 2016 at 6:59 AM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> This was something that I wrote in the early days of the spirv_to_nir code<br>
> but deleted once we had a real driver. However, in the absence of a<br>
> shader_runner equivalent, it's extremely useful for debugging the<br>
> spirv_to_nir code so let's bring it back.<br>
> ---<br>
> src/compiler/<a href="http://Makefile.nir.am" rel="noreferrer" target="_blank">Makefile.nir.am</a> | 17 +++++++++++++<br>
> src/compiler/spirv/spirv2nir.c | 55 ++++++++++++++++++++++++++++++<wbr>++++++++++++<br>
> 2 files changed, 72 insertions(+)<br>
> create mode 100644 src/compiler/spirv/spirv2nir.c<br>
><br>
> diff --git a/src/compiler/<a href="http://Makefile.nir.am" rel="noreferrer" target="_blank">Makefile.nir.am</a> b/src/compiler/<a href="http://Makefile.nir.am" rel="noreferrer" target="_blank">Makefile.nir.am</a><br>
> index 9aac214..69ff7b1 100644<br>
> --- a/src/compiler/<a href="http://Makefile.nir.am" rel="noreferrer" target="_blank">Makefile.nir.am</a><br>
> +++ b/src/compiler/<a href="http://Makefile.nir.am" rel="noreferrer" target="_blank">Makefile.nir.am</a><br>
> @@ -53,6 +53,23 @@ nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py<br>
> $(MKDIR_GEN)<br>
> $(PYTHON_GEN) $(srcdir)/nir/nir_opt_<wbr>algebraic.py > $@ || ($(RM) $@; false)<br>
><br>
> +noinst_PROGRAMS += spirv2nir<br>
> +<br>
> +spirv2nir_SOURCES = \<br>
> + spirv/spirv2nir.c<br>
> +<br>
> +spirv2nir_CPPFLAGS = \<br>
> + $(AM_CPPFLAGS) \<br>
> + -I$(top_builddir)/src/<wbr>compiler/nir \<br>
> + -I$(top_srcdir)/src/compiler/<wbr>nir \<br>
> + -I$(top_srcdir)/src/compiler/<wbr>spirv<br>
> +<br>
> +spirv2nir_LDADD = \<br>
> + nir/<a href="http://libnir.la" rel="noreferrer" target="_blank">libnir.la</a> \<br>
> + $(top_builddir)/src/util/<a href="http://libmesautil.la" rel="noreferrer" target="_blank">libme<wbr>sautil.la</a> \<br>
> + -lm -lstdc++ \<br>
<br>
</div></div>Instead of -lstdc++, I think you should to add<br>
nodist_EXTRA_spirv2nir_SOURCES = dummy.cpp.<br>
</blockquote></div><br></div><div class="gmail_extra">Done. Thanks!<br></div></div>