From 48b47f48ae6c5e3206bc306f2215a82273d5a313 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Fri, 2 Feb 2018 16:37:08 +0000 Subject: Add asm.js to third_party/build/build_config.h. This reflects changes in the build_config.h from chromium/build/src. Bug: chromium:804907 Change-Id: I892bcf3bbf5d260c904f40536fa1f3c9e49a5ac6 Reviewed-on: https://pdfium-review.googlesource.com/25130 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- third_party/build/build_config.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/third_party/build/build_config.h b/third_party/build/build_config.h index d4c66e046d..e59b7b95c6 100644 --- a/third_party/build/build_config.h +++ b/third_party/build/build_config.h @@ -59,6 +59,8 @@ #define OS_SOLARIS 1 #elif defined(__QNXNTO__) #define OS_QNX 1 +#elif defined(__asmjs__) +#define OS_ASMJS #else #error Please add support for your platform in build/build_config.h #endif @@ -78,7 +80,8 @@ #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \ defined(OS_ANDROID) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \ - defined(OS_ANDROID) || defined(OS_NACL) || defined(OS_QNX) + defined(OS_ANDROID) || defined(OS_NACL) || defined(OS_QNX) || \ + defined(OS_ASMJS) #define OS_POSIX 1 #endif @@ -146,7 +149,7 @@ #define ARCH_CPU_ARM64 1 #define ARCH_CPU_64_BITS 1 #define ARCH_CPU_LITTLE_ENDIAN 1 -#elif defined(__pnacl__) +#elif defined(__pnacl__) || defined(__asmjs__) #define ARCH_CPU_32_BITS 1 #define ARCH_CPU_LITTLE_ENDIAN 1 #elif defined(__MIPSEL__) -- cgit v1.2.3