summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-02-02 16:37:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-02 16:37:08 +0000
commit48b47f48ae6c5e3206bc306f2215a82273d5a313 (patch)
treeb13d43fd46cf2c9f341f9a2000360b1c444101c6
parentf7c84e910899237ffe673de83cdec6dc49f073b4 (diff)
downloadpdfium-48b47f48ae6c5e3206bc306f2215a82273d5a313.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r--third_party/build/build_config.h7
1 files 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__)