comparison dmd/mars.c @ 676:1f0a78174598

Make ldc call gcc to assemble.
author Christian Kamm <kamm incasoftware de>
date Sat, 11 Oct 2008 20:00:36 +0200
parents bfe5229f9d8e
children 075c1272a01d
comparison
equal deleted inserted replaced
675:bfe5229f9d8e 676:1f0a78174598
242 "" 242 ""
243 #endif 243 #endif
244 ); 244 );
245 } 245 }
246 246
247 int main(int argc, char *argv[]) 247 int main(int argc, char *argv[], char** envp)
248 { 248 {
249 int i; 249 int i;
250 Array files; 250 Array files;
251 char *p; 251 char *p;
252 Module *m; 252 Module *m;
1138 m = (Module *)modules.data[i]; 1138 m = (Module *)modules.data[i];
1139 if (global.params.verbose) 1139 if (global.params.verbose)
1140 printf("code %s\n", m->toChars()); 1140 printf("code %s\n", m->toChars());
1141 if (global.params.obj) 1141 if (global.params.obj)
1142 { 1142 {
1143 m->genobjfile(0); 1143 m->genobjfile(0, envp);
1144 global.params.objfiles->push(m->objfile->name->str); 1144 global.params.objfiles->push(m->objfile->name->str);
1145 } 1145 }
1146 if (global.errors) 1146 if (global.errors)
1147 m->deleteObjFile(); 1147 m->deleteObjFile();
1148 else 1148 else