Files
clang-p2996/compiler-rt/lib/orc/tests/unit/common.cpp
Lang Hames f6c51ea84a [ORC-RT] Fix unit tests on Linux.
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.
2024-12-09 13:41:24 +11:00

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);
}