File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
3
- --verbosity 10 /c main1.c main2.c /Fo dir
3
+ --verbosity 10 /c main1.c main2.c /Fodir/
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
6
--
Original file line number Diff line number Diff line change
1
+ CORE
2
+
3
+ --verbosity 10 /c main1.c main2.c /Fodir
4
+ ^EXIT=64$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
9
+ --
10
+ Visual Studio expects a / or \ at the end of a directory name to be treating it
11
+ as a directory. Using multiple translation units without a target directory is
12
+ not permitted.
Original file line number Diff line number Diff line change @@ -118,6 +118,16 @@ int ms_cl_modet::doit()
118
118
compiler.output_file_object = Fo_value;
119
119
}
120
120
121
+ if (
122
+ compiler.mode == compilet::COMPILE_ONLY &&
123
+ cmdline.args .size () > 1 &&
124
+ compiler.output_directory_object .empty ())
125
+ {
126
+ error () << " output directory required for /c with multiple input files"
127
+ << eom;
128
+ return EX_USAGE;
129
+ }
130
+
121
131
if (cmdline.isset (" Fe" ))
122
132
{
123
133
compiler.output_file_executable =cmdline.get_value (" Fe" );
You can’t perform that action at this time.
0 commit comments