Changeset 655


Ignore:
Timestamp:
Mar 8, 2010, 3:50:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

emxexpw.cmd: Allow to run w/o the object list which generates a DEF file with no EXPORTS section (e.g. for descriptive purposes). In -map mode, the object list is still required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/emxexpw.cmd

    r562 r655  
    9595/* check options */
    9696if (Opt.!DefFile == '') then call Error "E_NoDefFile"
    97 if (Opt.!Objects.0 == 0) then call Error "E_NoObjectFiles"
     97if (Opt.!DefMap \== '') then
     98    if (Opt.!Objects.0 == 0) then call Error "E_NoObjectFiles"
    9899
    99100/* apply default options */
     
    103104
    104105/* check emxexp.exe existence */
    105 G.emxexp_exe = SysSearchPath('PATH', 'EMXEXP.EXE')
    106 if (G.emxexp_exe == '') then call Error "E_CantFindEMXEXP"
     106if (Opt.!DefMap \== '' | Opt.!Objects.0 > 0) then do
     107    G.emxexp_exe = SysSearchPath('PATH', 'EMXEXP.EXE')
     108    if (G.emxexp_exe == '') then call Error "E_CantFindEMXEXP"
     109end
    107110
    108111Opt.!ObjectsList = ''
     
    138141
    139142    /* write object files to a responce file for EMXEXP */
    140     if (Opt.!ObjectsList == '') then do
     143    if (Opt.!ObjectsList == '') then do
    141144        G.!ObjectListFile = SysTempFileName(GetTempDir()'\emxxexp_?????.tmp')
    142145        do i = 1 to Opt.!Objects.0
     
    167170
    168171        call lineout Opt.!DefFile
     172
     173
     174
     175
    169176
    170177        if (have_exports_macro) then do
Note: See TracChangeset for help on using the changeset viewer.