Changeset 439


Ignore:
Timestamp:
Nov 13, 2014, 12:22:30 AM (11 years ago)
Author:
dmik
Message:

Add hotspot build hacks to speed up rebuilds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/env.cmd

    r351 r439  
    255255if (\fRelease & \fMake) then do
    256256    call EnvSet 'JAVA_TOOL_OPTIONS', '-XX:+UseOSErrorReporting'
     257end
     258
     259/* Special hotspot build setup */
     260if (fMake & wordpos('hotspot', fTargets) > 0) then do
     261
     262    /* Only build the clent JVM to speed up the rebuild cycle */
     263    call EnvSet 'BUILD_CLIENT_ONLY', '1'
     264
     265    /* Also manually copy JVM.DLL to the right location as the hotspot target doesn't do so */
     266    if (fProductRelease) then
     267        build_path = DosSlashes(EnvGet('ALT_OUTPUTDIR'))
     268    else do
     269        build_path = ScriptDir'openjdk\build\os2-i586'
     270        if (wordpos('debug_build', aArgs) > 0) then build_path = build_path'-debug'
     271        else if (wordpos('fastdebug_build') > 0) then build_path = build_path'-fastdebug'
     272    end
     273    ExtraArgs = 'xcopy' build_path'\hotspot\import\jre\bin\client\*' build_path'\bin\client\'
     274    aArgs = aArgs '&&' ExtraArgs
    257275end
    258276
     
    287305    if (G.LOG_FILE \== '' & aArgs \= '') then do
    288306        /* copy all output to the log file */
    289         aArgs = aArgs '2>&1 | tee' G.LOG_FILE
     307        aArgs = '('aArgs') 2>&1 | tee' G.LOG_FILE
    290308    end
    291309    call EnvSet 'SE_CMD_ARGS', aArgs
Note: See TracChangeset for help on using the changeset viewer.