Changeset 14165 for trunk/abcl/build.xml


Ignore:
Timestamp:
10/05/12 15:20:57 (9 years ago)
Author:
Mark Evenson
Message:

Ant target to 'abcl.compile.lisp.debug' via JDWP.

With this target, he Lisp compilation is invoked with the contents of
the JVM property "abcl.compile.lisp.debug.jvmarg". The default value
of this property suspends the JVM at the start of the compilation,
listening on port 6789.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/build.xml

    r14042 r14165  
    8282
    8383    <patternset id="abcl.objects">
    84       <!-- "system.lisp" is dynamically created by COMPILE-SYSTEM -->
     84      <!-- "system.lisp" is dynamically created by COMPILE-fSYSTEM -->
    8585      <include name="org/armedbear/lisp/system.lisp"/>
    8686      <include name="org/armedbear/lisp/**/*.class"/>
     
    233233    <property name="system.lisp.file"
    234234              value="${build.classes.dir}/org/armedbear/lisp/system.lisp"/>
    235    
     235
    236236    <target name="abcl.compile.lisp"
    237237            depends="abcl.copy.lisp,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
    238238            unless="abcl.fasls.uptodate.p">
    239       <echo>
     239      <abcl.compile.lisp/>
     240    </target>
     241
     242    <macrodef name="abcl.compile.lisp">
     243      <element name="additional.jvmarg" optional="true"/>
     244      <sequential>
     245        <echo>
    240246Compiling Lisp system
    241247from ${abcl.home.dir}
     
    253259        <jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
    254260        <jvmarg value="-Dabcl.autoload.verbose=Y"/>
     261        <additional.jvmarg/>
    255262        <arg value="--noinit"/>
    256263        <arg value="--nosystem"/>
     
    261268        <fileset file="${abcl.startup.file}"/>
    262269      </concat>
     270        </sequential>
     271    </macrodef>
     272
     273    <property name="abcl.compile.lisp.debug.jvmarg"
     274              value="-agentlib:jdwp=transport=dt_socket,server=y,address=6789,suspend=y"/>
     275    <target name="abcl.compile.lisp.debug"
     276            depends="abcl.copy.lisp,abcl.compile.java,abcl.system.update.maybe,abcl.fasls.uptodate"
     277            unless="abcl.fasls.uptodate.p">
     278      <echo>Debugging with jvmarg ${abcl.compile.lisp.debug.jvmarg}</echo>
     279      <abcl.compile.lisp>
     280          <additional.jvmarg>
     281            <jvmarg value="${abcl.compile.lisp.debug.jvmarg}"/>
     282          </additional.jvmarg>
     283      </abcl.compile.lisp>
    263284    </target>
    264285
Note: See TracChangeset for help on using the changeset viewer.