File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
use vergen:: EmitBuilder ;
2
2
3
3
pub fn main ( ) {
4
+ // on windows, link clang_rt.builtins-x86_64.lib
5
+ println ! ( "cargo:rustc-link-lib=clang_rt.builtins-x86_64" ) ;
6
+
4
7
// NOTE: This will output everything, and requires all features enabled.
5
8
// NOTE: See the EmitBuilder documentation for configuration options.
6
9
EmitBuilder :: builder ( )
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ extern "C"
326
326
InitializeNativeTarget ();
327
327
InitializeNativeTargetAsmPrinter ();
328
328
InitializeNativeTargetAsmParser ();
329
+ llvm::sys::DynamicLibrary::LoadLibraryPermanently (nullptr );
329
330
std::string lib_full_path = getLibvmPath ();
330
331
std::string errMsgString;
331
332
llvm::sys::DynamicLibrary::LoadLibraryPermanently (lib_full_path.c_str (), &errMsgString);
@@ -434,6 +435,7 @@ extern "C"
434
435
InitializeNativeTarget ();
435
436
InitializeNativeTargetAsmPrinter ();
436
437
InitializeNativeTargetAsmParser ();
438
+ llvm::sys::DynamicLibrary::LoadLibraryPermanently (nullptr );
437
439
std::string lib_full_path = getLibvmPath ();
438
440
// llvm::sys::DynamicLibrary::LoadLibraryPermanently(lib_full_path.c_str());
439
441
auto jit = ExitOnErr (PivotJIT::Create ());
You can’t perform that action at this time.
0 commit comments