diff --git a/src/intel/compiler/brw/meson.build b/src/intel/compiler/brw/meson.build index 7e38c61c1c3..9fe61baeee9 100644 --- a/src/intel/compiler/brw/meson.build +++ b/src/intel/compiler/brw/meson.build @@ -192,19 +192,6 @@ endif if with_intel_tools -bison_command = [] -if yacc_is_bison - bison_command = [ - prog_bison, '@INPUT@', '--defines=@OUTPUT1@', - '--output=@OUTPUT0@' - ] -else - bison_command = [ - prog_bison, '-H', '@OUTPUT1@', - '-o', '@OUTPUT0@', '@INPUT@' - ] -endif - brw_gram_tab = custom_target( 'brw_gram.tab.[ch]', input : 'brw_gram.y', diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build index 0a2c0c1f66a..c7ce570e0d4 100644 --- a/src/intel/compiler/meson.build +++ b/src/intel/compiler/meson.build @@ -34,6 +34,23 @@ brw_device_sha1_gen_src = custom_target('brw_device_sha1_gen.c', output : ['brw_device_sha1_gen.c'], command : [prog_python, '@INPUT0@', '--out', '@OUTPUT@']) +if with_intel_tools + +bison_command = [] +if yacc_is_bison + bison_command = [ + prog_bison, '@INPUT@', '--defines=@OUTPUT1@', + '--output=@OUTPUT0@' + ] +else + bison_command = [ + prog_bison, '-H', '@OUTPUT1@', + '-o', '@OUTPUT0@', '@INPUT@' + ] +endif + +endif + subdir('brw') subdir('jay')