[Fix][Clang] Add the standard includes of clang into the binaries

Summary:
@public
This change adds the includes of clang into the binaries, to solve problems like the ones described in
https://github.com/facebook/infer/issues/69
https://github.com/facebook/infer/issues/77

Test Plan: I tested the newly generated binaries of clang with cpp files importing `memory` and it compiles.
master
martinoluca 10 years ago
parent 9c0cc5c651
commit d95c4cd12c

@ -40,11 +40,12 @@ find $PKG_DIR -name "*.pyc" | xargs rm
# Add facebook-clang-plugin
PKG_PLUGIN_DIR=$PKG_DIR/facebook-clang-plugin
mkdir -p $PKG_PLUGIN_DIR/clang/{bin,lib}
mkdir -p $PKG_PLUGIN_DIR/clang/{bin,lib,include}
mkdir -p $PKG_PLUGIN_DIR/libtooling/build
cp $CLANG_PLUGIN_DIR/{CONTRIBUTING.md,LICENSE,LLVM-LICENSE,PATENTS,README.md} $PKG_PLUGIN_DIR
cp -r $CLANG_PLUGIN_DIR/clang/bin/clang* $PKG_PLUGIN_DIR/clang/bin
cp -r $CLANG_PLUGIN_DIR/clang/lib/* $PKG_PLUGIN_DIR/clang/lib
cp -r $CLANG_PLUGIN_DIR/clang/include/* $PKG_PLUGIN_DIR/clang/include
rm $PKG_PLUGIN_DIR/clang/lib/*.a
cp -r $CLANG_PLUGIN_DIR/libtooling/build/* $PKG_PLUGIN_DIR/libtooling/build

Loading…
Cancel
Save