nir: Fix out-of-tree build for spirv2nir
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 10 Feb 2016 23:49:25 +0000 (15:49 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 10 Feb 2016 23:54:28 +0000 (15:54 -0800)
This needs to be able to find the generated nir_opcodes.h header.

src/compiler/Makefile.am

index fe96cb3c879fcd1760661882889effafda57d1a8..8f37448469637868d4bf0e0243a9c70ec52b8f52 100644 (file)
@@ -179,6 +179,11 @@ glsl_glsl_test_LDADD =                                     \
 spirv2nir_SOURCES = \
        nir/spirv2nir.c
 
+spirv2nir_CPPFLAGS =                                   \
+       $(AM_CPPFLAGS)                                  \
+       -I$(top_builddir)/src/compiler/nir              \
+       -I$(top_srcdir)/src/compiler/nir
+
 spirv2nir_LDADD =                                      \
        nir/libnir.la                                   \
        $(top_builddir)/src/util/libmesautil.la         \