summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__)