From a347ed99121ae397a96d6a754de0b6fa970c2b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 20 Feb 2018 10:24:24 +0100 Subject: [PATCH] build: Minor cleanups find_program() defaults to require the program in question, and as failing to locate it is now fatal, there's no longer a need for checking whether it was found later. Spotted by Michael Catanzaro. --- data/theme/meson.build | 20 +++++++++----------- meson.build | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/data/theme/meson.build b/data/theme/meson.build index cf941ef27..22bae3dd2 100644 --- a/data/theme/meson.build +++ b/data/theme/meson.build @@ -14,14 +14,12 @@ styles = [ theme_deps = [] -if sassc.found() - foreach style: styles - theme_deps += custom_target('style-' + style, - input: '@0@.scss'.format(style), - output: '@0@.css'.format(style), - command: [ - sassc, '-a', '@INPUT@', '@OUTPUT@' - ], - depend_files: theme_sources) - endforeach -endif +foreach style: styles + theme_deps += custom_target('style-' + style, + input: '@0@.scss'.format(style), + output: '@0@.css'.format(style), + command: [ + sassc, '-a', '@INPUT@', '@OUTPUT@' + ], + depend_files: theme_sources) +endforeach diff --git a/meson.build b/meson.build index 895246e61..f5b08b8f9 100644 --- a/meson.build +++ b/meson.build @@ -138,7 +138,7 @@ endif mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir') python = find_program('python3') -sassc = find_program('sassc', required: true) +sassc = find_program('sassc') cc = meson.get_compiler('c')