comparison gen/toobj.cpp @ 708:fd5665da3a27

Hopefully sensible command switch handling. Changed default ext to .o on Windows.
author Christian Kamm <kamm incasoftware de>
date Thu, 16 Oct 2008 22:07:02 +0200
parents 1556a9328ba1
children 30b42a283c8e
comparison
equal deleted inserted replaced
707:1556a9328ba1 708:fd5665da3a27
250 } 250 }
251 251
252 // call gcc to convert assembly to object file 252 // call gcc to convert assembly to object file
253 if (global.params.output_o) { 253 if (global.params.output_o) {
254 LLPath objpath = LLPath(objfile->name->toChars()); 254 LLPath objpath = LLPath(objfile->name->toChars());
255 objpath.eraseSuffix();
256 objpath.appendSuffix(std::string(global.obj_ext));
257 assemble(spath, objpath, envp); 255 assemble(spath, objpath, envp);
258 } 256 }
259 257
260 if (!global.params.output_s) { 258 if (!global.params.output_s) {
261 spath.eraseFromDisk(); 259 spath.eraseFromDisk();