Changeset 12685 for branches/0.20.x


Ignore:
Timestamp:
05/15/10 16:35:47 (14 years ago)
Author:
Mark Evenson
Message:

Backport r1267[35]: Load 'system.lisp' later in boot so conditions trigger debugger.

New command line option '--nosystem' omits the processing of 'system.lisp'.

Location:
branches/0.20.x/abcl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.20.x/abcl/build.xml

    r12684 r12685  
    242242        <jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
    243243  <arg value="--noinit"/>
     244        <arg value="--nosystem"/>
    244245        <arg value="--eval"/>
    245246        <arg value="(setf *load-verbose* t)"/>
     
    279280
    280281    <target name="abcl.system.uptodate">
    281       <uptodate property="abcl.system.needs-update.p"
     282      <condition property="abcl.system.needs-update.p">
     283        <and>
     284          <available file="${system.lisp.file}"/>
     285          <available file="${abcl.startup.file}"/>
     286          <uptodate
    282287                srcfile="${system.lisp.file}"
    283288                targetfile="${abcl.startup.file}"/>
     289        </and>
     290      </condition>
    284291    </target>
    285292   
    286     <target name="abcl.system.update.maybe" depends="abcl.system.uptodate" if="abcl.system.needs-update.p">
     293    <target name="abcl.system.update.maybe" depends="abcl.system.uptodate"
     294            if="abcl.system.needs-update.p">
    287295      <touch file="${src.dir}/org/armedbear/lisp/compile-system.lisp"/>
    288296    </target>
  • branches/0.20.x/abcl/src/org/armedbear/lisp/Interpreter.java

    r12629 r12685  
    5353
    5454    private static boolean noinit = false;
     55    private static boolean nosystem = false;
    5556    private static boolean noinform = false;
    5657
     
    9394        initializeLisp();
    9495        initializeTopLevel();
     96        if (!nosystem)
     97            initializeSystem();
    9598        if (!noinit)
    9699            processInitializationFile();
     
    118121        initializeJLisp();
    119122        initializeTopLevel();
     123        initializeSystem();
    120124        processInitializationFile();
    121125        return interpreter;
     
    212216    }
    213217
     218    private static synchronized void initializeSystem()
     219    {
     220        Load.loadSystemFile("system");
     221    }
     222
    214223    // Check for --noinit; verify that arguments are supplied for --load and
    215224    // --eval options.  Copy all unrecognized arguments into
     
    225234                if (arg.equals("--noinit")) {
    226235                    noinit = true;
     236                } else if (arg.equals("--nosystem")) {
     237                    nosystem = true;
    227238                } else if (arg.equals("--noinform")) {
    228239                    noinform = true;
  • branches/0.20.x/abcl/src/org/armedbear/lisp/boot.lisp

    r12516 r12685  
    210210             (float (/ (ext:uptime) 1000)))))
    211211
    212 ;;; "system.lisp" contains system installation specific information
    213 ;;; (currently only the logical pathname definition for "SYS;SRC")
    214 ;;; that is not currently required for ABCL to run.  Since
    215 ;;; LOAD-SYSTEM-FILE exits the JVM if its argument cannot be found, we
    216 ;;; use REQUIRE trapping any error.
    217 (handler-case
    218     (require 'system)
    219   (t ()))
    220 
     212
Note: See TracChangeset for help on using the changeset viewer.