Skip to content

Commit

Permalink
Check if clang is installed
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Feb 28, 2017
1 parent e39fae9 commit 15fe83b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ set -e
# we need to use clang because the Unreal Engine is built with clang as well and
# there are some symbol inconsistencies in the C++ library with regard to C++11
# (see GCC Dual ABI: # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html)

#!/bin/bash
if [[ !(-f "/usr/bin/clang") || !(-f "/usr/bin/clang++") ]]; then
echo "clang is necessary to compile AirSim"
fi

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

Expand Down

0 comments on commit 15fe83b

Please sign in to comment.