Commits

Manuel Jacob committed a05ed14

Remove dead build_main_for_shared() from genc.py.

  • Participants
  • Parent commits 472f2b6
  • Branches refactor-translator

Comments (0)

Files changed (1)

rpython/translator/c/genc.py

             return res.out, res.err
         return res.out
 
-    def build_main_for_shared(self, shared_library_name, entrypoint, exe_name):
-        import time
-        time.sleep(1)
-        self.shared_library_name = shared_library_name
-        # build main program
-        eci = self.get_eci()
-        kw = {}
-        if self.translator.platform.cc == 'gcc':
-            kw['libraries'] = [self.shared_library_name.purebasename[3:]]
-            kw['library_dirs'] = [self.targetdir]
-        else:
-            kw['libraries'] = [self.shared_library_name.new(ext='')]
-        eci = eci.merge(ExternalCompilationInfo(
-            separate_module_sources=['''
-                int %s(int argc, char* argv[]);
-
-                int main(int argc, char* argv[])
-                { return %s(argc, argv); }
-                ''' % (entrypoint, entrypoint)
-                ],
-            **kw
-            ))
-        eci = eci.convert_sources_to_files(
-            cache_dir=self.targetdir)
-        return self.translator.platform.compile(
-            [], eci,
-            outputfilename=exe_name)
-
     def compile(self, exe_name=None):
         assert self.c_source_filename
         assert not self._compiled