forked from OSchip/llvm-project
[mlir][nfc] Fix building mlir_c_runner_utils for Windows
Summary: On Windows, building `mlir_c_runner_utils` doesn't properly export symbols, thus resulting in an implib not being created, which causes an error when consuming LLVM from external projects. Differential Revision: https://reviews.llvm.org/D75769
This commit is contained in:
parent
91153e0624
commit
c3108404c1
|
@ -167,6 +167,8 @@ struct UnrankedMemRefType {
|
|||
//===----------------------------------------------------------------------===//
|
||||
// Small runtime support "lib" for vector.print lowering during codegen.
|
||||
//===----------------------------------------------------------------------===//
|
||||
extern "C" MLIR_CRUNNERUTILS_EXPORT void print_i32(int32_t i);
|
||||
extern "C" MLIR_CRUNNERUTILS_EXPORT void print_i64(int64_t l);
|
||||
extern "C" MLIR_CRUNNERUTILS_EXPORT void print_f32(float f);
|
||||
extern "C" MLIR_CRUNNERUTILS_EXPORT void print_f64(double d);
|
||||
extern "C" MLIR_CRUNNERUTILS_EXPORT void print_open();
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/ExecutionEngine/CRunnerUtils.h"
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstdio>
|
||||
|
||||
|
|
Loading…
Reference in New Issue