Changes in driver/cc1.cc [0163d3e:49d3128]
- File:
-
- 1 edited
-
driver/cc1.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
driver/cc1.cc
r0163d3e r49d3128 10 10 // Created On : Fri Aug 26 14:23:51 2005 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at May 30 18:09:05 202013 // Update Count : 40412 // Last Modified On : Sun Oct 20 08:14:33 2019 13 // Update Count : 385 14 14 // 15 15 … … 38 38 static string o_file; 39 39 static string bprefix; 40 static string lang; // -x flag41 40 42 41 … … 74 73 if ( prefix( val, "-compiler=" ) ) { 75 74 compiler_path = val.substr( 10 ); 76 } else if ( prefix( val, "-x=" ) ) {77 lang = val.substr( 3 );78 75 } // if 79 76 } // if … … 103 100 } else if ( prefix( val, "-B=" ) ) { // location of cfa-cpp 104 101 bprefix = val.substr( 3 ); 105 } else if ( prefix( val, "-x=" ) ) { // ignore106 102 } else { // normal flag for cfa-cpp 107 103 args[nargs++] = ( *new string( arg.substr( arg.find_first_of( "=" ) + 1 ) ) ).c_str(); … … 251 247 252 248 args[0] = compiler_path.c_str(); 253 if ( lang.size() == 0 ) { 254 suffix( cpp_in, args, nargs ); // check suffix 255 } else { 256 args[nargs++] = "-x"; 257 args[nargs++] = ( *new string( lang.c_str() ) ).c_str(); 258 } // if 249 suffix( cpp_in, args, nargs ); // check suffix 259 250 args[nargs++] = cpp_in; 260 251 if ( o_flag ) { // location for output … … 289 280 290 281 args[0] = compiler_path.c_str(); 291 if ( lang.size() == 0 ) { 292 suffix( cpp_in, args, nargs ); // check suffix 293 } else { 294 args[nargs++] = "-x"; 295 args[nargs++] = ( *new string( lang.c_str() ) ).c_str(); 296 } // if 282 suffix( cpp_in, args, nargs ); // check suffix 297 283 args[nargs++] = cpp_in; // input to cpp 298 284 args[nargs] = nullptr; // terminate argument list
Note:
See TracChangeset
for help on using the changeset viewer.