From bf7c4d5debf32980dbbabc1ea99b58b266390011 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 16 May 2021 20:31:48 +0100 Subject: [PATCH] fix(svg): enable SVG by default via librsvg --- build-emacs-for-macos | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build-emacs-for-macos b/build-emacs-for-macos index a090140..dbd38fc 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -314,7 +314,7 @@ class Build configure_flags << '--with-xwidgets' end configure_flags << native_comp_configure_flag if options[:native_comp] - configure_flags << '--without-rsvg' unless options[:rsvg] + configure_flags << '--without-rsvg' if options[:rsvg] == false run_cmd './configure', *configure_flags @@ -819,7 +819,7 @@ if __FILE__ == $PROGRAM_NAME work_dir: File.expand_path(__dir__), native_full_aot: false, parallel: Etc.nprocessors, - rsvg: false, + rsvg: true, xwidgets: true } @@ -863,9 +863,10 @@ if __FILE__ == $PROGRAM_NAME cli_options[:native_full_aot] = v end - opts.on('--rsvg', 'Enable SVG image support via librsvg, ' \ - 'can yield a unstable build (default: disabled)') do - cli_options[:rsvg] = true + opts.on('--[no-]rsvg', + 'Enable/disable SVG image support via librsvg ' \ + '(default: enabled)') do |v| + cli_options[:rsvg] = v end opts.on('--no-titlebar', 'Apply no-titlebar patch (default: disabled)') do