wscript: Automatically disable SSE on platforms that don't support it (i.e. raspberry pi)
Closes: #213
This commit is contained in:
parent
3d18cf37b9
commit
63a624414b
5
wscript
5
wscript
|
@ -38,6 +38,11 @@ def configure(conf):
|
|||
conf.env['LIB_PTHREAD'] = ['pthread']
|
||||
conf.env['LIB_DL'] = ['dl']
|
||||
conf.env['LIB_M'] = ['m']
|
||||
|
||||
if Options.options.sse:
|
||||
if os.system("grep -q '^flags.*sse' /proc/cpuinfo"):
|
||||
Options.options.sse = 0
|
||||
print "Processor lacks sse, disabling..."
|
||||
|
||||
# NTK_EXTRA_FLAGS=''
|
||||
# if not Options.options.use_system_ntk:
|
||||
|
|
Loading…
Reference in New Issue