Expose build info (#7399)

This commit is contained in:
Jiaming Yuan
2021-11-12 18:22:46 +08:00
committed by GitHub
parent 937fa282b5
commit 46726ec176
7 changed files with 158 additions and 11 deletions

View File

@@ -42,6 +42,15 @@ typedef void *BoosterHandle; // NOLINT(*)
*/
XGB_DLL void XGBoostVersion(int* major, int* minor, int* patch);
/*!
* \brief Get compile information of shared library.
*
* \param out string encoded JSON object containing build flags and dependency version.
*
* \return 0 for success, -1 for failure
*/
XGB_DLL int XGBBuildInfo(char const **out);
/*!
* \brief get string message of the last error
*