I used an excelent LLVM MinGW recipe for building a LLVM/Clang/LLD based mingw-w64 toolchain for cross-compilation. It is available at https://github.com/mstorsjo/llvm-mingw Having built it you can easily create your Windows dll under Linux as: ``` graph, lib, params = relay.build (mod, target = target, target_host = target_host, params = params) cross_compiler_path = "~/opt/llvm-mingw/bin/x86_64-w64-mingw32-clang++" lib.export_library (path_lib, tvm.contrib.cross_compiler (cross_compiler_path, output_format = "dll")) ``` Hope this helps.
--- [Visit Topic](https://discuss.tvm.apache.org/t/cross-compilation-for-windows/7698/4) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/7cbdff6177d0e30ed7fa3963ad92090bcf9f08cad5dd139c99614aa18a434da4).