The unit tests may transiently depend on __orc_rt_log_error, which is usually provided by an alias when loading the runtime through the JIT. The unit tests statically link the runtime, so this patch provides a fixed definition.
7 lines
190 B
C++
7 lines
190 B
C++
#include <stdio.h>
|
|
|
|
/// Defined so that tests can use code that logs errors.
|
|
extern "C" void __orc_rt_log_error(const char *ErrMsg) {
|
|
fprintf(stderr, "orc runtime error: %s\n", ErrMsg);
|
|
}
|