From 2c4c3d8d7c2558e6033d3f8e19af512611f662a9 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 6 Oct 2023 00:39:35 +0300 Subject: [PATCH] mu4e/meson.build: more tweaking to avoid warnings --- mu4e/meson.build | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/mu4e/meson.build b/mu4e/meson.build index 5608ec17..b6dbc06b 100644 --- a/mu4e/meson.build +++ b/mu4e/meson.build @@ -81,7 +81,10 @@ foreach src : mu4e_srcs target_path = join_paths(meson.current_build_dir(), target_name) target_func = '(setq byte-compile-dest-file-function(lambda(_) "' + target_path + '"))' - # todo: depfile. + # hack-around for native compile issue: copy sources to builddir. + # see: https://debbugs.gnu.org/db/47/47987.html + configure_file(input: src, output:'@BASENAME@.el', copy:true, + install_mode: 'r--r--r--') custom_target(src.underscorify() + '_el', build_by_default: true, @@ -94,20 +97,14 @@ foreach src : mu4e_srcs command: [emacs, '--no-init-file', '--batch', - '--directory', meson.current_build_dir(), '--directory', meson.current_source_dir(), + '--directory', meson.current_build_dir(), # we don't need warnings for items that have become # obsolete _after_ our last supported emacs release. '--eval', '(setq byte-compile-warnings \'(not obsolete))', '--eval', target_func, '--funcall', 'batch-byte-compile', '@INPUT@']) -endforeach -# hack-around for native compile issue: copy sources to builddir. -# see: https://debbugs.gnu.org/db/47/47987.html -foreach src : mu4e_srcs - configure_file(input: src, output:'@BASENAME@.el', copy:true, - install_mode: 'r--r--r--') endforeach # this depends on the above hack: all mu4e elisp files needs to be in builddir