diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-15 17:12:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-15 17:12:26 -0700 |
| commit | 8d60ffe314306e5295fb76338c6391e5fe986dea (patch) | |
| tree | 06e551cf499421ce89656181b814c02c86875034 /src/zig_llvm.cpp | |
| parent | 8409e518abad78cef8984b798c404bdc2923efbf (diff) | |
| download | zig-8d60ffe314306e5295fb76338c6391e5fe986dea.tar.gz zig-8d60ffe314306e5295fb76338c6391e5fe986dea.zip | |
solve the mystery of undefined reference error
big surprise, C++ is to blame
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 699963f5d3..be4cf2ac05 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -5,6 +5,13 @@ * See http://opensource.org/licenses/MIT */ +// This must go before all includes. +#include "config.h" +#if defined(ZIG_LLVM_OLD_CXX_ABI) +#define _GLIBCXX_USE_CXX11_ABI 0 +#endif + + #include "zig_llvm.hpp" /* |
