Skip to content

Commit

Permalink
Don't pass -m32/-m64 where it's not supported.
Browse files Browse the repository at this point in the history
Only PowerPC, SPARC, and x86 do support the -m32 and -m64 compiler options [1].

Rather then excluding all architectures not supporting these options as it is
done in commit c063434 [2], include all
architectures that do support them.

This will fix building Boost for the SuperH architecture with Buildroot [3].

[1] https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
[2] c063434
[3] http://autobuild.buildroot.net/results/ccd/ccd5c83963032ba49b1627b1dff39e34a9486943/build-end.log
  • Loading branch information
joerg-krause authored and vprus committed May 4, 2015
1 parent aeb4130 commit 9576ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/gcc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ rule setup-address-model ( targets * : sources * : properties * )
else
{
local arch = [ feature.get-values architecture : $(properties) ] ;
if $(arch) != arm && $(arch) != mips1
if $(arch) = power || $(arch) = sparc || $(arch) = x86
{
if $(model) = 32
{
Expand Down

0 comments on commit 9576ca2

Please sign in to comment.