forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compress code for UE4.18, issue: microsoft#433
- Loading branch information
Showing
11 changed files
with
139 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,21 +14,21 @@ fi | |
|
||
#give user perms to access USB port - this is not needed if not using PX4 HIL | ||
#TODO: figure out how to do below in travis | ||
if [ "$(uname)" == "Darwin" ]; then | ||
if [ "$(uname)" == "Darwin" ]; then # osx | ||
if [[ ! -z "${whoami}" ]]; then #this happens when running in travis | ||
sudo dseditgroup -o edit -a `whoami` -t user dialout | ||
fi | ||
|
||
#below takes way too long | ||
# brew install [email protected] | ||
brew install --force-bottle llvm@3.9 | ||
brew install --force-bottle llvm@5.0 | ||
|
||
brew install wget | ||
brew install coreutils | ||
|
||
export C_COMPILER=/usr/local/opt/llvm\@3.9/bin/clang | ||
export COMPILER=/usr/local/opt/llvm\@3.9/bin/clang++ | ||
else | ||
export C_COMPILER=/usr/local/opt/llvm\@5.09/bin/clang | ||
export COMPILER=/usr/local/opt/llvm\@5.0/bin/clang++ | ||
else #linux | ||
if [[ ! -z "${whoami}" ]]; then #this happens when running in travis | ||
sudo /usr/sbin/useradd -G dialout $USER | ||
sudo usermod -a -G dialout $USER | ||
|
@@ -38,14 +38,14 @@ else | |
sudo apt-get install -y build-essential | ||
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | ||
sudo apt-get update | ||
sudo apt-get install -y clang-3.9 clang++-3.9 | ||
sudo apt-get install -y clang-5.0 clang++-5.0 | ||
sudo apt-get install -y unzip | ||
|
||
export C_COMPILER=clang-3.9 | ||
export COMPILER=clang++-3.9 | ||
export C_COMPILER=clang-5.0 | ||
export COMPILER=clang++-5.0 | ||
fi | ||
|
||
#download cmake - we need v3.9+ which is not available in Ubuntu 16.04 | ||
#download cmake - we need v3.9+ which is not out of box in Ubuntu 16.04 | ||
if [[ ! -d "cmake_build/bin" ]]; then | ||
echo "Downloading cmake..." | ||
wget https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz \ | ||
|
@@ -121,12 +121,12 @@ fi | |
# #sudo apt-get install -y clang-3.9-doc libclang-common-3.9-dev libclang-3.9-dev libclang1-3.9 libclang1-3.9-dbg libllvm-3.9-ocaml-dev libllvm3.9 libllvm3.9-dbg lldb-3.9 llvm-3.9 llvm-3.9-dev llvm-3.9-doc llvm-3.9-examples llvm-3.9-runtime clang-format-3.9 python-clang-3.9 libfuzzer-3.9-dev | ||
|
||
#get libc++ source | ||
if [[ ! -d "llvm-source-39" ]]; then | ||
git clone --depth=1 -b release_39 https://github.com/llvm-mirror/llvm.git llvm-source-39 | ||
git clone --depth=1 -b release_39 https://github.com/llvm-mirror/libcxx.git llvm-source-39/projects/libcxx | ||
git clone --depth=1 -b release_39 https://github.com/llvm-mirror/libcxxabi.git llvm-source-39/projects/libcxxabi | ||
if [[ ! -d "llvm-source-50" ]]; then | ||
git clone --depth=1 -b release_50 https://github.com/llvm-mirror/llvm.git llvm-source-50 | ||
git clone --depth=1 -b release_50 https://github.com/llvm-mirror/libcxx.git llvm-source-50/projects/libcxx | ||
git clone --depth=1 -b release_50 https://github.com/llvm-mirror/libcxxabi.git llvm-source-50/projects/libcxxabi | ||
else | ||
echo "folder llvm-source already exists, skipping git clone..." | ||
echo "folder llvm-source-50 already exists, skipping git clone..." | ||
fi | ||
|
||
#build libc++ | ||
|
@@ -142,7 +142,7 @@ pushd llvm-build >/dev/null | |
"$CMAKE" -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} \ | ||
-LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF -DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=OFF \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=./output \ | ||
../llvm-source-39 | ||
../llvm-source-50 | ||
|
||
make cxx | ||
|
||
|