def build(self, ctx, instance):
     os.chdir(os.path.join(ctx.paths.root, self.name))
     run(ctx, [
         'make', '--always-make', 'OBJDIR=' + self.path(ctx, instance.name),
         'CC=' + ctx.cxx, 'CFLAGS=' + qjoin(ctx.cflags),
         'LDFLAGS=' + qjoin(ctx.ldflags)
     ])
示例#2
0
 def run_make(self, ctx, instance, *args):
     os.chdir(self.path(ctx, 'src'))
     env = {
         'TARGETDIR': self.path(ctx, instance.name),
         'LLVM_VERSION': DeltaTags.llvm.version,
         'CC': ctx.cc,
         'CXX': ctx.cxx,
         'CFLAGS': qjoin(ctx.cflags),
         'CXXFLAGS': qjoin(ctx.cxxflags),
         'LDFLAGS': qjoin(ctx.ldflags)
     }
     return run(ctx, ['make', *args], env=env)