From 706285123cb6741295f5edd6c1a4cb9871ad992c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 23 Mar 2016 02:40:45 +0100 Subject: [PATCH] geckolib: tools: Switch to llvm+clang 38 It also has our patches, and we'll benefit from improvements. --- ports/geckolib/tools/build_custom_clang.sh | 10 ++++------ ports/geckolib/tools/setup_bindgen.sh | 4 +++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ports/geckolib/tools/build_custom_clang.sh b/ports/geckolib/tools/build_custom_clang.sh index 7bf98741060..541df798657 100755 --- a/ports/geckolib/tools/build_custom_clang.sh +++ b/ports/geckolib/tools/build_custom_clang.sh @@ -12,15 +12,13 @@ fi # Download and build a custom llvm git clone https://github.com/llvm-mirror/llvm cd llvm -git checkout release_37 +git checkout release_38 cd tools git clone https://github.com/llvm-mirror/clang cd clang -git remote add mwu https://github.com/michaelwu/clang -git fetch mwu -git checkout release_37_smhacks +git checkout release_38 cd ../.. # llvm root dir mkdir build cd build -../configure --enable-optimized -make +cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. +make -j8 diff --git a/ports/geckolib/tools/setup_bindgen.sh b/ports/geckolib/tools/setup_bindgen.sh index ce3851daa1b..6a074537de9 100755 --- a/ports/geckolib/tools/setup_bindgen.sh +++ b/ports/geckolib/tools/setup_bindgen.sh @@ -4,7 +4,9 @@ cd "$(dirname $0)" # Setup and build bindgen. -export LIBCLANG_PATH="$(pwd)/llvm/build/Release+Asserts/lib" +export LIBCLANG_PATH="$(pwd)/llvm/build/lib" +export LD_LIBRARY_PATH="$(pwd)/llvm/build/lib" +export DYLD_LIBRARY_PATH="$(pwd)/llvm/build/lib" # Make sure we have a custom clang set up.