From d95c4cd12c926dafe78bfccf3ae164ba79bb5fdd Mon Sep 17 00:00:00 2001 From: martinoluca Date: Wed, 17 Jun 2015 11:47:46 -0100 Subject: [PATCH] [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. --- scripts/create_binaries.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create_binaries.sh b/scripts/create_binaries.sh index 5f74b8f37..c12dc4a6d 100755 --- a/scripts/create_binaries.sh +++ b/scripts/create_binaries.sh @@ -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