Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 760 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 760 Bytes

preprocessor-debug

Observe how the C preprocessor expands your complicated macros

Dependencies:

  • clang 4.0
  • CMake 3.3+

Build instructions:

  • mkdir build && cd build
  • cmake ..
  • make

Use instructions:

./pp-step ../example.cpp

asm.js version:

Dependencies

  • clang 4.0
  • yarn
  • Emscripten

Build instructions:

  • Build clang in bitcode. This is hard, but can be done with the help of emmake. When you are done, update CLANG_LIB_PATH in web/Makefile.
  • cd web
  • make
  • yarn

Since building clang in bitcode is hard, a pre-compiled version of the tool is in web/compiled.tgz