[R] Enable OpenMP with AppleClang in XGBoost R package (#5240)

* [R] Enable OpenMP with AppleClang in XGBoost R package

* Dramatically simplify install doc
This commit is contained in:
Philip Hyunsu Cho
2020-01-28 12:37:22 -08:00
committed by GitHub
parent f7105fa44f
commit cb3ed404cf
5 changed files with 51 additions and 66 deletions

View File

@@ -261,6 +261,8 @@ Rpack: clean_all
sed -i -e 's/-pthread/$$\(SHLIB_PTHREAD_FLAGS\)/g' xgboost/src/Makevars.win
sed -i -e 's/@ENDIAN_FLAG@/-DDMLC_CMAKE_LITTLE_ENDIAN=1/g' xgboost/src/Makevars.win
sed -i -e 's/@BACKTRACE_LIB@//g' xgboost/src/Makevars.win
sed -i -e 's/@OPENMP_LIB@//g' xgboost/src/Makevars.win
rm -f xgboost/src/Makevars.win-e # OSX sed create this extra file; remove it
bash R-package/remove_warning_suppression_pragma.sh
rm xgboost/remove_warning_suppression_pragma.sh