Add support for passing defines to mig

This change updates the `mig.py` wrapper to accept `--define`
arguments, which are passed as `-D` options to the underlying `mig`
tool.

This is used to define `MACH_EXC_SERVER_TASKIDTOKEN` and
`MACH_EXC_SERVER_TASKIDTOKEN_STATE` when building the Mach exception
server on iOS. These definitions are required to generate stubs for
`mach_exception_raise_identity_protected` and
`mach_exception_raise_state_identity_protected`.

Change-Id: If9c09e75cdb5b71c1be4e6969ec726e9cfcf9177
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/7206936
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
3 files changed
tree: 7fd869932585db317dbe8421a9346ef9f5e86ee1
  1. build/
  2. client/
  3. compat/
  4. doc/
  5. handler/
  6. infra/
  7. minidump/
  8. snapshot/
  9. test/
  10. third_party/
  11. tools/
  12. util/
  13. .clang-format
  14. .gitattributes
  15. .gitignore
  16. .gn
  17. .style.yapf
  18. .vpython3
  19. AUTHORS
  20. BUILD.gn
  21. codereview.settings
  22. CONTRIBUTORS
  23. DEPS
  24. LICENSE
  25. navbar.md
  26. OWNERS
  27. package.h
  28. README.md
README.md

Crashpad

Crashpad is a crash-reporting system.

Documentation

Source Code

Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.

Other Links