Print this page
9899 cw(1onbld) should shadow more compilation


  47 
  48      -_name=
  49 
  50      -_style=
  51              Parameters intended for the compiler be guarded with options of
  52              the form -_name= and -_style= Where name and style are those
  53              passed to --primary and --shadow this allows certain flags to be
  54              passed only to certain classes of compiler.
  55 
  56              For historical reasons, the -_style= option is also translated
  57              such that a style of sun may use the flag -_cc= and a style of
  58              gnu may use the flag -_gcc=, and when the -C option is given and
  59              C++ is in use the style of sun may use the flag -_CC= and the
  60              style of gnu may use the flag -_g++=.
  61 
  62 SHADOW COMPILATION
  63      If --shadow compilers are specified cw will invoke each shadow compiler,
  64      with the outputs modified (as well as any translation for compiler style)
  65      as follows:
  66 
  67      1.   If neither of -c, -S appears in the argument list (that is, linking
  68           is attempted or only the pre-processor is invoked), the shadow
  69           compilers will not be invoked.
  70 
  71      2.   If the -o filename option was provided, with or without a separating
  72           space, it will be replaced with -o tempfile
  73 
  74      3.   If the option -o was not provided, -o tempfile will be added to the
  75           end of the argument list used to invoke the shadow compilers.
  76      When shadow compilation is in effect, cw writes to standard error each
  77      compiler's standard error output following its argument list.  Messages
  78      from the compilers will not be interleaved.  If cw is used to invoke the
  79      preprocessor and no output location is specified, cw will write to
  80      standard output the primary compiler's standard output.
  81 
  82      Because the Sun compilers write intermediate objects to fixed filenames
  83      in the current directory when instructed to compile and link multiple
  84      source files via a single command line, it would be unsafe to invoke more
  85      than one compiler in this fashion.  Therefore cw does not accept multiple
  86      source files unless the preprocessor is to be invoked.  An attempt to
  87      invoke cw in this manner will result in an error.
  88 
  89 ARGUMENT TRANSLATION




  47 
  48      -_name=
  49 
  50      -_style=
  51              Parameters intended for the compiler be guarded with options of
  52              the form -_name= and -_style= Where name and style are those
  53              passed to --primary and --shadow this allows certain flags to be
  54              passed only to certain classes of compiler.
  55 
  56              For historical reasons, the -_style= option is also translated
  57              such that a style of sun may use the flag -_cc= and a style of
  58              gnu may use the flag -_gcc=, and when the -C option is given and
  59              C++ is in use the style of sun may use the flag -_CC= and the
  60              style of gnu may use the flag -_g++=.
  61 
  62 SHADOW COMPILATION
  63      If --shadow compilers are specified cw will invoke each shadow compiler,
  64      with the outputs modified (as well as any translation for compiler style)
  65      as follows:
  66 
  67      1.   If cw is invoked to link-edit without compilation (the input files
  68           are all objects), the shadow compiler is not invoked.

  69 
  70      2.   If the -o filename option was provided, with or without a separating
  71           space, it will be replaced with -o tempfile
  72 
  73      3.   If the option -o was not provided, -o tempfile will be added to the
  74           end of the argument list used to invoke the shadow compilers.
  75      When shadow compilation is in effect, cw writes to standard error each
  76      compiler's standard error output following its argument list.  Messages
  77      from the compilers will not be interleaved.  If cw is used to invoke the
  78      preprocessor and no output location is specified, cw will write to
  79      standard output the primary compiler's standard output.
  80 
  81      Because the Sun compilers write intermediate objects to fixed filenames
  82      in the current directory when instructed to compile and link multiple
  83      source files via a single command line, it would be unsafe to invoke more
  84      than one compiler in this fashion.  Therefore cw does not accept multiple
  85      source files unless the preprocessor is to be invoked.  An attempt to
  86      invoke cw in this manner will result in an error.
  87 
  88 ARGUMENT TRANSLATION