The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: Add env var to ignore client/service version conflicts

+6 -2
+6 -2
src/xrt/ipc/client/ipc_client_instance.c
··· 45 45 #endif // XRT_OS_ANDROID 46 46 47 47 DEBUG_GET_ONCE_LOG_OPTION(ipc_log, "IPC_LOG", U_LOGGING_WARN) 48 + DEBUG_GET_ONCE_BOOL_OPTION(ipc_ignore_version, "IPC_IGNORE_VERSION", false) 48 49 49 50 /* 50 51 * ··· 309 310 if (strncmp(u_git_tag, ii->ipc_c.ism->u_git_tag, IPC_VERSION_NAME_LEN) != 0) { 310 311 IPC_ERROR((&ii->ipc_c), "Monado client library version %s does not match service version %s", u_git_tag, 311 312 ii->ipc_c.ism->u_git_tag); 312 - free(ii); 313 - return -1; 313 + if (!debug_get_bool_option_ipc_ignore_version()) { 314 + IPC_ERROR((&ii->ipc_c), "Set IPC_IGNORE_VERSION=1 to ignore this version conflict"); 315 + free(ii); 316 + return -1; 317 + } 314 318 } 315 319 316 320 uint32_t count = 0;