File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,18 @@ class Build
180
180
@configure_help
181
181
end
182
182
183
+ def supports_xwidgets?
184
+ @supports_xwidgets ||= !!configure_help . match ( /\s +--with-xwidgets\s +/ )
185
+ end
186
+
183
187
def supports_native_comp?
184
- @supports_native_comp ||= !! configure_help . match ( / \s +--with-nativecomp \s +/ )
188
+ @supports_native_comp ||= !native_comp_configure_flag . nil?
185
189
end
186
190
187
- def supports_xwidgets?
188
- @supports_xwidgets ||= !!configure_help . match ( /\s +--with-xwidgets\s +/ )
191
+ def native_comp_configure_flag
192
+ @native_comp_configure_flag ||= configure_help . match (
193
+ /\s +(--with-native(?:comp|-compilation))\s +/
194
+ ) &.[]( 1 )
189
195
end
190
196
191
197
def detect_native_comp
@@ -292,7 +298,7 @@ class Build
292
298
if options [ :xwidgets ] && supports_xwidgets?
293
299
configure_flags << '--with-xwidgets'
294
300
end
295
- configure_flags << '--with-nativecomp' if options [ :native_comp ]
301
+ configure_flags << native_comp_configure_flag if options [ :native_comp ]
296
302
configure_flags << '--without-rsvg' unless options [ :rsvg ]
297
303
298
304
run_cmd './configure' , *configure_flags
You can’t perform that action at this time.
0 commit comments