Mercurial > projects > ldc
comparison gen/toobj.cpp @ 1026:f756c47f310a
Pass -m32/-m64 on to gcc when assembling and linking
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 01 Mar 2009 22:59:03 +0100 |
parents | 5aa5d25508c6 |
children | 12ea38902e83 |
comparison
equal
deleted
inserted
replaced
1023:ca191c141cec | 1026:f756c47f310a |
---|---|
331 args.push_back("-fpic"); | 331 args.push_back("-fpic"); |
332 | 332 |
333 //FIXME: enforce 64 bit | 333 //FIXME: enforce 64 bit |
334 if (global.params.is64bit) | 334 if (global.params.is64bit) |
335 args.push_back("-m64"); | 335 args.push_back("-m64"); |
336 else | |
337 // Assume 32-bit? | |
338 args.push_back("-m32"); | |
336 | 339 |
337 // Now that "args" owns all the std::strings for the arguments, call the c_str | 340 // Now that "args" owns all the std::strings for the arguments, call the c_str |
338 // method to get the underlying string array. We do this game so that the | 341 // method to get the underlying string array. We do this game so that the |
339 // std::string array is guaranteed to outlive the const char* array. | 342 // std::string array is guaranteed to outlive the const char* array. |
340 std::vector<const char *> Args; | 343 std::vector<const char *> Args; |