summaryrefslogtreecommitdiffstats
path: root/src/intel/Makefile.compiler.am
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-09-19 11:46:16 -0700
committerDylan Baker <[email protected]>2017-09-27 09:07:28 -0700
commit848da662224326ccfbe6647bc82f4f89ca22c762 (patch)
treee5779521af3f18afb6fb639a42f5b8561e0aea64 /src/intel/Makefile.compiler.am
parenta65db0ad1c3ace58fbc81b6860e28c0a7645257c (diff)
intel: use a flag instead of setting PYTHONPATH
Meson doesn't allow setting environment variables for custom targets, so we either need to not pass this as an environment variable or use a shell script to wrap the invocation. The chosen solution has the advantage of working for both autotools and meson. v2: - put rules back in top scope (Ken) Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/intel/Makefile.compiler.am')
-rw-r--r--src/intel/Makefile.compiler.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/Makefile.compiler.am b/src/intel/Makefile.compiler.am
index 3ab550c96b1..45e7a6ccce8 100644
--- a/src/intel/Makefile.compiler.am
+++ b/src/intel/Makefile.compiler.am
@@ -35,7 +35,7 @@ BUILT_SOURCES += $(COMPILER_GENERATED_FILES)
compiler/brw_nir_trig_workarounds.c: compiler/brw_nir_trig_workarounds.py \
$(top_srcdir)/src/compiler/nir/nir_algebraic.py
$(MKDIR_GEN)
- $(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/compiler/brw_nir_trig_workarounds.py > $@ || ($(RM) $@; false)
+ $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/compiler/brw_nir_trig_workarounds.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false)
EXTRA_DIST += \
compiler/brw_nir_trig_workarounds.py