fixed a bug when runtime is rebuilt
diff --git a/src/packages/xdc/runtime/Error.xs b/src/packages/xdc/runtime/Error.xs
index 09094a2..1df8a7b 100644
--- a/src/packages/xdc/runtime/Error.xs
+++ b/src/packages/xdc/runtime/Error.xs
@@ -20,11 +20,14 @@
 function module$use()
 {
     xdc.useModule('xdc.runtime.Text');
-    var rtsVers = Packages.xdc.services.global.Vers.getXdcString
-    (xdc.getPackageBase(Program.build.target.rts) + "/package/package.defs.h");
-    if (rtsVers < "xdc-H00" || rtsVers >= "xdc-a00") {
-        xdc.useModule("xdc.runtime.Log");
-        xdc.useModule("xdc.runtime.Diags");
+    if (xdc.module('xdc.runtime.Core').noAsserts == false) {
+        var rtsVers = Packages.xdc.services.global.Vers.getXdcString(
+            xdc.getPackageBase(Program.build.target.rts)
+            + "/package/package.defs.h");
+        if (rtsVers < "xdc-H00" || rtsVers >= "xdc-a00") {
+            xdc.useModule("xdc.runtime.Log");
+            xdc.useModule("xdc.runtime.Diags");
+        }
     }
 }