diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-08 22:31:17 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-09 01:02:59 +0800 |
commit | 9b4546c487bc59e790716a11531e660110ca81e9 (patch) | |
tree | e3e4cefaac9e53dd494f021eaaab5e15e6b87941 /libsolidity/formal/CVC4Interface.h | |
parent | 551343ae3eb1b3f1575d91a4f7021c0f9529d5bd (diff) | |
download | dexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.tar.gz dexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.tar.zst dexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.zip |
Add workarounds for building against CVC4 on ArchLinux.
Diffstat (limited to 'libsolidity/formal/CVC4Interface.h')
-rw-r--r-- | libsolidity/formal/CVC4Interface.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libsolidity/formal/CVC4Interface.h b/libsolidity/formal/CVC4Interface.h index dcd87525..cd6d761d 100644 --- a/libsolidity/formal/CVC4Interface.h +++ b/libsolidity/formal/CVC4Interface.h @@ -21,8 +21,19 @@ #include <boost/noncopyable.hpp> +#if defined(__GLIBC__) +// The CVC4 headers includes the deprecated system headers <ext/hash_map> +// and <ext/hash_set>. These headers cause a warning that will break the +// build, unless _GLIBCXX_PERMIT_BACKWARD_HASH is set. +#define _GLIBCXX_PERMIT_BACKWARD_HASH +#endif + #include <cvc4/cvc4.h> +#if defined(__GLIBC__) +#undef _GLIBCXX_PERMIT_BACKWARD_HASH +#endif + namespace dev { namespace solidity |