Add debug errno in the JIT compile (#854)

Thank you for your contribution!
This commit is contained in:
Dung-Ru Tsai 2019-09-03 20:21:58 +08:00 committed by Alex Lin
parent de490a5dfa
commit 0dffa8096f

View File

@ -157,8 +157,8 @@ int Trick::JITInputFile::compile(std::string file_name) {
// If the compilation was unsuccessful, exec_terminate
if ( ret != 0 ) {
std::string error_message = "JITInputfile shared library creation failed" ;
exec_terminate_with_return(-1 , __FILE__ , __LINE__ , error_message.c_str() ) ;
std::string error_message = "JITInputfile shared library creation failed. ret:" + std::to_string(ret) + " errno:"+ strerror(errno);
exec_terminate_with_return(-1 , __FILE__ , __LINE__ , error_message.c_str()) ;
}
// The library compile successfully. Add library name to map