To allow running Firefox on processors without LASX (for example Loongson 2K3000; note that LSX is guaranteed for LoongArch desktop processors but LASX is not), only use -mlasx on the source files those a runtime check for LASX guards. The runtime check is in SkOpts.cpp and it's enabled after removing -mlasx for this translation unit, if LASX is available at runtime the code in SkOpts_lasx.cpp will be needed to configure Skia to use LASX. Thus we need to add SkOpts_lasx.cpp into the list of sources to build. Original Revision: https://phabricator.services.mozilla.com/D257490 Differential Revision: https://phabricator.services.mozilla.com/D257825
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot