Mercurial > projects > ldc
comparison dmd/link.c @ 126:a2c2c3c1a73d trunk
[svn r130] fixed #28
author | lindquist |
---|---|
date | Wed, 28 Nov 2007 05:04:38 +0100 |
parents | 70d6113eeb8c |
children | 8096ba7082db |
comparison
equal
deleted
inserted
replaced
125:c42d245468ea | 126:a2c2c3c1a73d |
---|---|
216 mem.free(p); | 216 mem.free(p); |
217 } | 217 } |
218 | 218 |
219 argv.insert(argv.dim, global.params.libfiles); | 219 argv.insert(argv.dim, global.params.libfiles); |
220 | 220 |
221 //if (global.params.symdebug) | 221 if (!global.params.symdebug) |
222 //argv.push((void *)"-g"); | 222 argv.push((void *)"-strip-debug"); |
223 | 223 |
224 //argv.push((void *)"-m32"); | 224 //argv.push((void *)"-m32"); |
225 | 225 |
226 | 226 |
227 if (!global.params.optimize) | 227 if (!global.params.optimize) |
245 assert(0); | 245 assert(0); |
246 } | 246 } |
247 argv.push((void*)s); | 247 argv.push((void*)s); |
248 } | 248 } |
249 | 249 |
250 if (!global.params.useInline) { | |
251 argv.push((void *)"-disable-inlining"); | |
252 } | |
253 | |
250 #if 0 | 254 #if 0 |
251 if (0 && global.params.exefile) | 255 if (0 && global.params.exefile) |
252 { | 256 { |
253 /* This switch enables what is known as 'smart linking' | 257 /* This switch enables what is known as 'smart linking' |
254 * in the Windows world, where unreferenced sections | 258 * in the Windows world, where unreferenced sections |