Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-11-30 19:38:09 +0300
committerIlya Zverev <zverik@textual.ru>2016-11-30 19:39:00 +0300
commit96732cb2f41cad7547930cb1297891b140407d2d (patch)
tree30ba18fc8031ade4546fd6161ce4d4d69d28ebfb /tools
parentb7bb3eada5c4d2af66cf0eb03cb3b4a59ad5173c (diff)
[build] Update build_omim to support devtoolset-3fixbuildgcc
Diffstat (limited to 'tools')
-rwxr-xr-xtools/unix/build_omim.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/unix/build_omim.sh b/tools/unix/build_omim.sh
index 509ca9f7c4..04e2695935 100755
--- a/tools/unix/build_omim.sh
+++ b/tools/unix/build_omim.sh
@@ -46,7 +46,7 @@ if ! grep "DEFAULT_URLS_JSON" "$OMIM_PATH/private.h" >/dev/null 2>/dev/null; the
fi
BOOST_PATH="${BOOST_PATH:-/usr/local/boost_1.54.0}"
-DEVTOOLSET_PATH=/opt/rh/devtoolset-2
+DEVTOOLSET_PATH=/opt/rh/devtoolset-3
if [ -d "$DEVTOOLSET_PATH" ]; then
export MANPATH=
source "$DEVTOOLSET_PATH/enable"
@@ -70,7 +70,7 @@ if [ "$(uname -s)" == "Darwin" ]; then
SPEC=${SPEC:-macx-clang}
PROCESSES=$(sysctl -n hw.ncpu)
else
- SPEC=${SPEC:-linux-clang-libc++}
+ SPEC=${SPEC-}
PROCESSES=$(nproc)
fi
@@ -89,20 +89,13 @@ build_conf()
(
export BOOST_INCLUDEDIR="$BOOST_PATH/include"
cd "$DIRNAME"
- if [ -n "$DEVTOOLSET_PATH" ]; then
- "$QMAKE" "$OMIM_PATH/omim.pro" -spec $SPEC CONFIG+=$CONF ${CONFIG+"CONFIG*=$CONFIG"} \
- "QMAKE_CXXFLAGS *=--gcc-toolchain=$DEVTOOLSET_PATH/root/usr" \
- "QMAKE_LFLAGS *=--gcc-toolchain=$DEVTOOLSET_PATH/root/usr"
- else
- "$QMAKE" "$OMIM_PATH/omim.pro" -spec $SPEC CONFIG+=$CONF ${CONFIG+"CONFIG*=$CONFIG"}
- fi
+ "$QMAKE" "$OMIM_PATH/omim.pro" ${SPEC:+-spec $SPEC} CONFIG+=$CONF ${CONFIG+"CONFIG*=$CONFIG"}
TMP_FILE="build_error.log"
if ! make -j $PROCESSES 2> "$TMP_FILE"; then
echo '--------------------'
cat "$TMP_FILE"
exit 1
fi
- rm "$TMP_FILE"
)
}
@@ -113,12 +106,14 @@ build_conf_osrm()
DIRNAME="$2"
mkdir -p "$DIRNAME"
OSPEC="$SPEC"
+ # OSRM is built with linux-clang spec
[ "$OSPEC" == "linux-clang-libc++" ] && OSPEC=linux-clang
(
export BOOST_INCLUDEDIR="$BOOST_PATH/include"
cd "$DIRNAME"
if [ -n "$DEVTOOLSET_PATH" ]; then
+ # linux-clang spec requires --gcc-toolchain flag
"$QMAKE" "$OMIM_PATH/omim.pro" -spec $OSPEC "CONFIG+=$CONF osrm no-tests" \
"QMAKE_CXXFLAGS *=--gcc-toolchain=$DEVTOOLSET_PATH/root/usr" \
"QMAKE_LFLAGS *=--gcc-toolchain=$DEVTOOLSET_PATH/root/usr"