build: Add $(top_srcdir)/src/compiler/spirv to AM_CPPFLAGS
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Jul 2017 18:09:37 +0000 (11:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Jul 2017 18:14:47 +0000 (11:14 -0700)
Generated C files try to include spirv_info.h.  For in-tree builds,
the header is in the same directory, so it just works.  For out-of-tree
builds, we need to look for it in srcdir rather than builddir.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101831
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/compiler/Makefile.am

index 4c83365094b712a9efff67d335e34770478f3587..001ff81aeb05b7db56bb7cfe14e03eb0e2268db0 100644 (file)
@@ -33,6 +33,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/compiler/glsl/glcpp\
        -I$(top_builddir)/src/compiler/nir \
        -I$(top_srcdir)/src/compiler/nir \
+       -I$(top_srcdir)/src/compiler/spirv \
        -I$(top_srcdir)/src/gallium/include \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gtest/include \