Ignore:
Timestamp:
Jan 28, 2013, 2:41:55 PM (11 years ago)
Author:
rybkin
Message:

See C.L. 500

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_constituent.cxx

    r627 r629  
    1616#include "cmt_database.h"
    1717#include "cmt_log.h"
     18#include "cmt_error.h"
    1819
    1920/*----------------------------------------------------------*/
     
    174175        m_constituent.need_prototypes = false;
    175176      }
     177    else if (w == "-modules")
     178      {
     179        if (m_constituent.type == Application ||
     180            m_constituent.type == Library)
     181          {
     182            m_constituent.has_modules = true;
     183          }
     184      }
     185    else if (w == "-no_modules")
     186      {
     187        if (m_constituent.type == Application ||
     188            m_constituent.type == Library)
     189          {
     190            m_constituent.has_modules = false;
     191          }
     192      }
    176193    else if (w == "-check")
    177194      {
     
    253270    else if (w.substr (0, 1) == "-")
    254271      {
    255         //if (!Cmt::get_quiet ())
    256         //{
    257         CmtMessage::warning ("bad option " + w + " in constituent " +
    258                              m_constituent.name);
    259         //      cerr << "#CMT> Warning: bad option "
    260         //           << w << " in constituent " << m_constituent.name << endl;
    261         //CmtError::set (CmtError::execution_error, cmd);
    262         //}
     272        if (CmtMessage::active (Verbose))
     273          CmtMessage::warning
     274            (CmtError::get_error_name (CmtError::syntax_error)
     275             + ": bad option " + w + " in constituent " + m_constituent.name);
    263276      }
    264277    else if ((equal = w.find ("=")) != cmt_string::npos)
     
    522535  no_share        = false;
    523536  need_prototypes = false;
     537  has_modules     = false;
    524538  need_check      = false;
    525539  build_triggers  = false;
     
    672686    }
    673687 
     688  if (type == Application || type == Library)
     689    {
     690      if (has_modules)
     691        out << " -modules";
     692      else
     693        out << " -no_modules";
     694    }
     695 
    674696  if (has_target_tag)
    675697    {
Note: See TracChangeset for help on using the changeset viewer.