commit | 0054936a45cf5c93198df9560483c2dab8664a5a | [log] [tgz] |
---|---|---|
author | Scott Graham <scottmg@chromium.org> | Wed Sep 16 13:35:32 2015 -0700 |
committer | Scott Graham <scottmg@chromium.org> | Wed Sep 16 13:35:32 2015 -0700 |
tree | 3ba25537906b72fef667e7da33d8b2fffb69ea06 | |
parent | 82e6229c2743c784f226a61f6b08ee6c2c67efce [diff] |
make demumble build ok on win vs2015
demumble
demangles both POSIX and Visual Studio symbols. It runs on both POSIX and Windows.
$ ./demumble _Z4funcPci func(char*, int) $ ./demumble "?Fx_i@@YAHP6AHH@Z@Z" int __cdecl Fx_i(int (__cdecl*)(int))
Use cmake to build: cmake -G Ninja && ninja
cxa_demangle.cpp
needs more C++11 than Visual Studio 2013 supports, so to build on Windows you need to use clang-cl as C++ compiler like so:
cmake -G Ninja -DCMAKE_CXX_COMPILER=path/to/llvm-build/bin/clang-cl.exe