cpu.x86.features: add -sse-version command-line switch to override SSE detection
parent
1e5bc3b376
commit
e5e7c1f725
|
@ -1,7 +1,8 @@
|
||||||
! Copyright (C) 2009 Slava Pestov.
|
! Copyright (C) 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: system kernel math alien.syntax combinators locals init io
|
USING: system kernel math math.order math.parser namespaces
|
||||||
cpu.x86 compiler compiler.units accessors ;
|
alien.syntax combinators locals init io cpu.x86 compiler
|
||||||
|
compiler.units accessors ;
|
||||||
IN: cpu.x86.features
|
IN: cpu.x86.features
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
@ -61,6 +62,7 @@ USING: cpu.x86.features cpu.x86.features.private ;
|
||||||
[ { sse_version } compile ] with-optimizer
|
[ { sse_version } compile ] with-optimizer
|
||||||
|
|
||||||
"Checking for multimedia extensions: " write sse-version
|
"Checking for multimedia extensions: " write sse-version
|
||||||
|
"sse-version" get [ string>number min ] when*
|
||||||
[ sse-string write " detected" print ]
|
[ sse-string write " detected" print ]
|
||||||
[ install-sse-check ]
|
[ install-sse-check ]
|
||||||
[ enable-sse ] tri
|
[ enable-sse ] tri
|
||||||
|
|
Loading…
Reference in New Issue