Force disable libjpeg-turbo's use of AltiVec if we don't have it

NB: This var must be set when NetSurf is launched.  The in-program setting is just a precaution in case the install script isn't run
This commit is contained in:
Chris Young 2016-07-09 14:32:43 +01:00
parent 7fe13d5afa
commit bb87d63f02
2 changed files with 11 additions and 1 deletions

View File

@ -289,6 +289,16 @@
(complete 75) (complete 75)
; Force disable use of AltiVec if we don't have it
(if (database "vectorunit" "0")
(
(textfile
(dest "ENVARC:JSIMD_FORCENONE")
(append "1")
)
)
)
(if (= (exists "ENVARC:Sys/def_css.info") 0) (if (= (exists "ENVARC:Sys/def_css.info") 0)
(copyfiles (copyfiles
(prompt "Copying default CSS icon") (prompt "Copying default CSS icon")

View File

@ -5553,7 +5553,7 @@ int main(int argc, char** argv)
LOG("AltiVec detected"); LOG("AltiVec detected");
} else { } else {
LOG("AltiVec NOT detected"); LOG("AltiVec NOT detected");
SetVar("JSIMD_FORCENONE", "1", 1, GVF_LOCAL_ONLY); SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
} }
#endif #endif