blob: fb8111f82b151bece0036ffbe80ff90c01dbf64c [file] [log] [blame]
var RtsBuild = xdc.loadCapsule('xdc/runtime/build.xs');
var KnlBuild = xdc.loadCapsule('xdc/runtime/knl/build.xs');
Pkg.makePrologue = RtsBuild.makePrologue;
Pkg.otherSrcs = ["package.bld"];
Pkg.otherFiles = Pkg.otherSrcs;
var cobjs = RtsBuild.objs.concat(KnlBuild.c_objs);
for (var i = 0; i < Build.targets.length; i++) {
var targ = Build.targets[i];
if (targ.rts == Pkg.name) {
var lib = Pkg.addLibrary("lib/" + Pkg.name, targ);
lib.addObjects(cobjs);
}
}