Print this page
9899 cw(1onbld) should shadow more compilation
9888 cw shouldn't use __unused


 120 and when the
 121 .Fl C
 122 option is given and C++ is in use the style of
 123 .Em sun
 124 may use the flag
 125 .Fl _CC=
 126 and the style of
 127 .Em gnu
 128 may use the flag
 129 .Fl _g++= .
 130 .El
 131 .Sh SHADOW COMPILATION
 132 If
 133 .Fl -shadow
 134 compilers are specified
 135 .Nm cw
 136 will invoke each shadow compiler, with the outputs modified (as well as any
 137 translation for compiler style) as follows:
 138 .Bl -enum
 139 .It
 140 If neither of
 141 .Fl c ,
 142 .Fl S
 143 appears in the argument list (that is, linking is attempted or only the
 144 pre-processor is invoked), the shadow compilers will not be invoked.
 145 .It
 146 If the
 147 .Fl o Ar filename
 148 option was provided, with or without a separating space, it will be replaced with
 149 .Fl o Ar tempfile
 150 .It
 151 If the option
 152 .Fl o
 153 was not provided,
 154 .Fl o Ar tempfile
 155 will be added to the end of the argument list used to invoke
 156 the shadow compilers.
 157 .El
 158 When shadow compilation is in effect,
 159 .Nm cw
 160 writes to standard error each compiler's standard error output following its
 161 argument list.
 162 Messages from the compilers will not be interleaved.
 163 If
 164 .Nm cw




 120 and when the
 121 .Fl C
 122 option is given and C++ is in use the style of
 123 .Em sun
 124 may use the flag
 125 .Fl _CC=
 126 and the style of
 127 .Em gnu
 128 may use the flag
 129 .Fl _g++= .
 130 .El
 131 .Sh SHADOW COMPILATION
 132 If
 133 .Fl -shadow
 134 compilers are specified
 135 .Nm cw
 136 will invoke each shadow compiler, with the outputs modified (as well as any
 137 translation for compiler style) as follows:
 138 .Bl -enum
 139 .It
 140 If
 141 .Nm cw
 142 is invoked to link-edit without compilation (the input files are all objects),
 143 the shadow compiler is not invoked.

 144 .It
 145 If the
 146 .Fl o Ar filename
 147 option was provided, with or without a separating space, it will be replaced with
 148 .Fl o Ar tempfile
 149 .It
 150 If the option
 151 .Fl o
 152 was not provided,
 153 .Fl o Ar tempfile
 154 will be added to the end of the argument list used to invoke
 155 the shadow compilers.
 156 .El
 157 When shadow compilation is in effect,
 158 .Nm cw
 159 writes to standard error each compiler's standard error output following its
 160 argument list.
 161 Messages from the compilers will not be interleaved.
 162 If
 163 .Nm cw