Testing Programs‎ > ‎

Compiling C++ Code

Clang's libcxx is part of testing_targets, and has been gyp-ified. You just need to list build/libcxx.gyp:libcxx as a dependency in your gyp file, and you're done.

For external programs, you need to:
  1. Compile with "-nostdinc++", and add libcxx/include to the include path.
  2. Link out/Default/obj.target/build/libcxx.a into your program.
Comments