Lines Matching refs:other
266 def same_flags(self, other): argument
270 return (not self.errors and not other.errors and
271 self.edition == other.edition and
272 self.cap_lints == other.cap_lints and
273 self.emit_list == other.emit_list and
274 self.core_externs == other.core_externs and
275 self.codegens == other.codegens and
276 self.features == other.features and
277 self.static_libs == other.static_libs and
278 self.shared_libs == other.shared_libs and self.cfgs == other.cfgs)
280 def merge_host_device(self, other): argument
282 return (self.crate_name == other.crate_name and
283 self.crate_types == other.crate_types and
284 self.main_src == other.main_src and
286 (self.stem == other.stem or self.crate_types == ['test']) and
287 self.root_pkg == other.root_pkg and not self.skip_crate() and
288 self.same_flags(other))
290 def merge_test(self, other): argument
295 return (self.crate_types == other.crate_types and
296 self.crate_types == ['test'] and self.root_pkg == other.root_pkg and
298 other.crate_name == test_base_name(other.main_src) and
301 self.host_supported == other.host_supported and
302 self.device_supported == other.device_supported) and
303 self.same_flags(other))
305 def merge(self, other, outf_name): argument
307 should_merge_host_device = self.merge_host_device(other)
310 should_merge_test = self.merge_test(other)
321 other.outf = outf
322 self.do_merge(other, should_merge_test)
326 def do_merge(self, other, should_merge_test): argument
332 other.dump_debug_info()
334 self.host_supported = self.host_supported or other.host_supported
335 self.device_supported = self.device_supported or other.device_supported
336 self.has_warning = self.has_warning or other.has_warning
338 self.target = other.target
343 self.srcs.append(other.main_src)