summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wright <jonathan.wright@arm.com>2021-01-18 11:41:42 +0000
committerJonathan Wright <jonathan.wright@arm.com>2021-01-18 11:41:42 +0000
commitfa0de07678c9828cc57b3eb086c03771912ba527 (patch)
tree969e35fcc1815fee1567ab7c504f215239813d66
parentf16a10d1d9e6cb24dba253cb8105c250b3b9d627 (diff)
Add Arm Neon SIMD paths to MSan builds
MSan does not support assembly code so all SIMD paths were disabled for MSan builds of libjpeg-turbo. Now that all Arm Neon SIMD paths are implemented using intrinsics (and all assembly code has been removed) we can enable these paths for MSan builds. Change-Id: Id244fa2f710d6647a20f2a0d1c6760813623b0cf
-rw-r--r--BUILD.gn6
1 files changed, 3 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 813357a..5befffd 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -267,9 +267,9 @@ static_library("libjpeg") {
":libjpeg_headers",
]
- # MemorySanitizer doesn't support assembly code, so keep it disabled in
- # MSan builds for now.
- if (is_msan) {
+ # MemorySanitizer doesn't support assembly code, so keep it disabled in x86
+ # and x64 MSan builds for now.
+ if (is_msan && (current_cpu == "x86" || current_cpu == "x64")) {
sources += [ "jsimd_none.c" ]
} else {
public_deps += [ ":simd" ]