tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Check if NEON extension are actually available

Open jpalus opened this issue 8 months ago • 3 comments

User may pass own compiler flags to configure which override those provided by project through automake. Therefore it is possible for user on ARM platform to pass CXXFLAGS=-mfpu=vfp which will effectively disable NEON even though used compiler supports -mfpu=neon (since user supplied flags take precedence compiler invocation will use flags: -mfpu=neon -mfpu=vfp). Instead of checking whether compiler supports -mfpu=neon flag, check if NEON extensions are available by checking if __ARM_NEON is defined when compiling with -mfpu=neon and user supplied flags combined.

jpalus avatar Oct 30 '23 00:10 jpalus