blob: fe8e223b94ef7ab73d9fea23979c5f25905d22b5 [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.otherFiles = ["package.bld"];
Pkg.otherSrcs = Pkg.otherFiles;
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);
}
}