-
-
Notifications
You must be signed in to change notification settings - Fork 19
Crashpad
Bobby Galli edited this page Apr 18, 2020
·
11 revisions
Install Google's depot_tools (ref)
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.gitsudo echo "export PATH=/path/to/depot_tools:$PATH" >> ~/.zshrc
Get the Crashpad source (ref)
mkdir ~/crashpadcd ~/crashpadfetch crashpad
cd ~/crashpad/crashpadgit pull -rgclient sync
cd ~/crashpad/crashpadgn gen out/Defaultninja -C out/Default
Building Shared Libraries (ref)
After running gn gen out\Default, you can edit the out\Default\toolchain.ninja file to add extra compiler flags to the command for the cc and cxx rules.
rule cc
command = ninja -t msvc -e environment.amd64 -- cl.exe ... ${cflags} ${cflags_c} /c ...
add the /MD compiler flag after the others, here ^