Changeset 273


Ignore:
Timestamp:
Mar 5, 2011, 8:56:24 PM (14 years ago)
Author:
dmik
Message:

env.cmd: Make sure Odin is not added to PATH/LIBPATH when making (access to library files is enough; bootstrap JDK may use another Odin build and would otherwise interfere with the one used as SDK for building).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalEnv.tpl.cmd

    r271 r273  
    1616/**
    1717 * Path to JDK used for bootstrapping. Must be set.
     18 *
     19 * Note that when using a previous OpenJDK build here, you must make sure
     20 * that all it needs (e.g. a corresponding Odin runtime) is on LIBPATH.
    1821 */
    1922G.PATH_TOOL_BOOT_JDK    = 'D:\Dev\openjdk6'
  • trunk/env.cmd

    r265 r273  
    186186 * set up Odin32 runtime
    187187 */
    188 if (fRelease) then do
    189     call EnvAddFront 'PATH', G.PATH_LIB_ODIN32'\bin\Release;'G.PATH_LIB_ODIN32'\bin'
    190     call EnvAddFront 'BEGINLIBPATH', G.PATH_LIB_ODIN32'\bin\Release;'G.PATH_LIB_ODIN32'\bin'
    191 end
    192 else do
    193     call EnvAddFront 'PATH', G.PATH_LIB_ODIN32'\bin\Debug;'G.PATH_LIB_ODIN32'\bin'
    194     call EnvAddFront 'BEGINLIBPATH', G.PATH_LIB_ODIN32'\bin\Debug;'G.PATH_LIB_ODIN32'\bin'
    195     call EnvSet 'WIN32.DEBUGBREAK', '1'
    196 end
    197 
    198 if (fOdinLog) then call EnvSet 'WIN32LOG_ENABLED', '1'
    199 else call EnvSet 'WIN32LOG_ENABLED', ''
     188if (\fMake) then do
     189    if (fRelease) then do
     190        call EnvAddFront 'PATH', G.PATH_LIB_ODIN32'\bin\Release;'G.PATH_LIB_ODIN32'\bin'
     191        call EnvAddFront 'BEGINLIBPATH', G.PATH_LIB_ODIN32'\bin\Release;'G.PATH_LIB_ODIN32'\bin'
     192    end
     193    else do
     194        call EnvAddFront 'PATH', G.PATH_LIB_ODIN32'\bin\Debug;'G.PATH_LIB_ODIN32'\bin'
     195        call EnvAddFront 'BEGINLIBPATH', G.PATH_LIB_ODIN32'\bin\Debug;'G.PATH_LIB_ODIN32'\bin'
     196        call EnvSet 'WIN32.DEBUGBREAK', '1'
     197    end
     198
     199    if (fOdinLog) then call EnvSet 'WIN32LOG_ENABLED', '1'
     200    else call EnvSet 'WIN32LOG_ENABLED', ''
     201end
    200202
    201203/*
Note: See TracChangeset for help on using the changeset viewer.