Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 230127 | Differences between
and this patch

Collapse All | Expand All

(-)pouetChess.py (-2 / +8 lines)
Lines 2-7 Link Here
2
2
3
import re, os, sys
3
import re, os, sys
4
import SCons.Util
4
import SCons.Util
5
import commands
5
from SCons.Options import Options
6
from SCons.Options import Options
6
7
7
8
Lines 184-192 Link Here
184
185
185
186
186
	f.close()
187
	f.close()
188
	arch = commands.getoutput('uname -m') 
187
	if len(archflags) == 0:
189
	if len(archflags) == 0:
188
		print "Couldn't detect your CPU, guessing i686 compatible.."
190
		if arch == 'x86_64':
189
		archflags=['-march=i686']
191
			print "Couldn't detect your CPU, `uname -m` indicates x86_64 compatible.."
192
			archflags=['-march=x86-64']
193
		else:
194
			print "Couldn't detect your CPU, guessing i686 compatible.."
195
			archflags=['-march=i686']
190
	return archflags
196
	return archflags

Return to bug 230127