blob: 6ca7b1490250d6c1bfecc62deb0f122839a1a146 [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) {
print(" building for target " + targ.name + " ...");
var lib = Pkg.addLibrary("lib/" + Pkg.name, targ);
lib.addObjects(cobjs);
}
}