Skip to content

Commit

Permalink
Disallow std::regex since it's not supported by GCC 4.8.x (#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored Nov 6, 2018
1 parent f1275f5 commit 20d5abf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ if [ ${TASK} == "lint" ]; then
# Fail only on warnings related to XGBoost source files
(cat logtidy.txt|grep -E 'xgboost.*warning'|grep -v dmlc-core) && exit -1
echo "----------------------------"

if grep -R '<regex>' src include tests/cpp plugin jvm-packages amalgamation; then
echo 'Do not use std::regex, since it is not supported by GCC 4.8.x'
exit -1
fi

exit 0
fi

Expand Down

0 comments on commit 20d5abf

Please sign in to comment.