Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/gen/toobj.cpp Sun Mar 01 22:40:15 2009 +0100 +++ b/gen/toobj.cpp Sun Mar 01 22:59:03 2009 +0100 @@ -333,6 +333,9 @@ //FIXME: enforce 64 bit if (global.params.is64bit) args.push_back("-m64"); + else + // Assume 32-bit? + args.push_back("-m32"); // Now that "args" owns all the std::strings for the arguments, call the c_str // method to get the underlying string array. We do this game so that the