From: Kristian Høgsberg Kristensen Date: Wed, 10 Feb 2016 23:49:25 +0000 (-0800) Subject: nir: Fix out-of-tree build for spirv2nir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cc939d82f2de83133010545af0c2f519a13d064;p=mesa.git nir: Fix out-of-tree build for spirv2nir This needs to be able to find the generated nir_opcodes.h header. --- diff --git a/src/compiler/Makefile.am b/src/compiler/Makefile.am index fe96cb3c879..8f374484696 100644 --- a/src/compiler/Makefile.am +++ b/src/compiler/Makefile.am @@ -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 \