Commit c60e3adb authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Fix build with julia 1.7

parent cd388be6
Pipeline #105755 passed with stage
in 18 minutes and 43 seconds
......@@ -91,7 +91,9 @@ void JuliaServer::runJuliaCommand(const QString &command)
if (jl_exception_occurred()) { // If exception occurred
// Show it to user in stderr
#if QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 1, 0)
#if QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 7, 0)
jl_value_t *ex = jl_current_task->ptls->previous_exception;
#elif QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 1, 0)
jl_value_t *ex = jl_get_ptls_states()->previous_exception;
#else
jl_value_t *ex = jl_exception_in_transit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment