Mercurial > projects > ldc
comparison gen/toobj.cpp @ 902:893d72ab95d0
Add -m64 switch to gcc calls on 64-bit platforms.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 23 Jan 2009 10:12:57 +0100 |
parents | 5a03f3f74615 |
children | c76f74d09fb1 |
comparison
equal
deleted
inserted
replaced
901:d51551cb3a85 | 902:893d72ab95d0 |
---|---|
357 args.push_back(objpath.toString()); | 357 args.push_back(objpath.toString()); |
358 | 358 |
359 //FIXME: only use this if needed? | 359 //FIXME: only use this if needed? |
360 args.push_back("-fpic"); | 360 args.push_back("-fpic"); |
361 | 361 |
362 //FIXME: enforce 64 bit | |
363 if (global.params.is64bit) | |
364 args.push_back("-m64"); | |
365 | |
362 // Now that "args" owns all the std::strings for the arguments, call the c_str | 366 // Now that "args" owns all the std::strings for the arguments, call the c_str |
363 // method to get the underlying string array. We do this game so that the | 367 // method to get the underlying string array. We do this game so that the |
364 // std::string array is guaranteed to outlive the const char* array. | 368 // std::string array is guaranteed to outlive the const char* array. |
365 std::vector<const char *> Args; | 369 std::vector<const char *> Args; |
366 for (unsigned i = 0, e = args.size(); i != e; ++i) | 370 for (unsigned i = 0, e = args.size(); i != e; ++i) |