forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#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); | ||
} |