def get_linker_entries(self): from segtypes.linker_entry import LinkerEntry if self.sibling: path = self.sibling.out_path() else: path = options.get_src_path() / self.name return [LinkerEntry(self, [path], path, self.get_linker_section())]
def out_path(self) -> Optional[Path]: if self.type.startswith("."): if self.sibling: # C file return self.sibling.out_path() else: # Implied C file return options.get_src_path() / self.dir / f"{self.name}.c" else: # ASM return options.get_asm_path() / "data" / self.dir / f"{self.name}.{self.type}.s"
def out_path(self) -> Optional[Path]: return options.get_src_path() / self.dir / f"{self.name}.c"
def out_path(self): return options.get_src_path() / self.dir / f"{self.name}.cpp"