Changeset 304


Ignore:
Timestamp:
Jun 27, 2011, 5:56:01 PM (14 years ago)
Author:
dmik
Message:

env.cmd: Added support for easy setting of the number of parallel make jobs through the G.MAKE_JOBS parameter.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalEnv.tpl.cmd

    r281 r304  
    5858 */
    5959G.LOG_FILE              = 'se.log' /* ScriptDir'se.log' */
     60
     61/**
     62 * The number of make jobs to run in parallel. A value of N+1 (where N is
     63 * the number of CPUs on the build machine) will greatly improve the build
     64 * speed.
     65 */
     66G.MAKE_JOBS             = '2'
    6067
    6168/*
  • trunk/env.cmd

    r287 r304  
    183183        call EnvSet 'SKIP_BUILD_'translate(word(fTargets, i))
    184184    end
     185end
     186
     187if (G.MAKE_JOBS \= '' && G.MAKE_JOBS \= '1') then do
     188    call EnvSet 'COMPILE_APPROACH', 'parallel'
     189    call EnvSet 'ALT_PARALLEL_COMPILE_JOBS', G.MAKE_JOBS
     190    call EnvSet 'HOTSPOT_BUILD_JOBS', G.MAKE_JOBS
    185191end
    186192
Note: See TracChangeset for help on using the changeset viewer.