Reorder static linked output

`set_defaults' wasn't in scope of maps.

* src/current/compiler/js.xsl (compiler:exit-rater lv:package):
  Remove static output.
* src/current/compiler/linker.xsl (l:link-deps lv:package):
  Link static after all other blocks, at highest scope within the
  compiled module.
master
Mike Gerwitz 2017-05-08 16:35:34 -04:00
parent ec4c73f749
commit 353440ef31
2 changed files with 3 additions and 3 deletions

View File

@ -217,9 +217,6 @@
</for-each>
<text>}; </text>
<!-- common stuff -->
<call-template name="compiler:static" />
<!-- the rater has been generated; return it -->
<text>return rater;</text>
<text>} )()</text>

View File

@ -954,6 +954,7 @@
<xsl:text>compiling entry point...</xsl:text>
</xsl:with-param>
</xsl:call-template>
<xsl:apply-templates select="." mode="compiler:entry" />
@ -979,6 +980,8 @@
<xsl:with-param name="deps" select="$deps" />
</xsl:apply-templates>
<!-- common stuff -->
<xsl:call-template name="compiler:static" />
<!-- finally, finish up -->
<xsl:call-template name="log:info">