commit | f3b4aeb700dffa979ea22fdc4bd26001c8aa96e2 | [log] [tgz] |
---|---|---|
author | Sam Clegg <sbc@chromium.org> | Wed Aug 14 01:30:48 2019 +0000 |
committer | Sam Clegg <sbc@chromium.org> | Wed Aug 14 01:30:48 2019 +0000 |
tree | 7d0582a8746f92d2d27c5498862898354d8044f9 | |
parent | bb31674033ade6ec128582aa69a6e2fdfd50621e [diff] |
[libcxxabi] Define _LIBCXXABI_GUARD_ABI_ARM on WebAssembly This matches ItaniumCXXABI.cpp. Fixes PR42680 Differential Revision: https://reviews.llvm.org/D64961 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@368783 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__cxxabi_config.h b/include/__cxxabi_config.h index 1e0edca..cbbb1c1 100644 --- a/include/__cxxabi_config.h +++ b/include/__cxxabi_config.h
@@ -71,7 +71,8 @@ #define _LIBCXXABI_NO_CFI #endif -#if defined(__arm__) +// wasm32 follows the arm32 ABI convention of using 32-bit guard. +#if defined(__arm__) || defined(__wasm32__) # define _LIBCXXABI_GUARD_ABI_ARM #endif