fix dec calling convention for windows

This commit is contained in:
Folkert 2022-09-04 18:26:04 +02:00
parent f3e999169d
commit 08b25cb935
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 84 additions and 35 deletions

View file

@ -311,7 +311,9 @@ pub fn helper<'a>(
src: &str,
context: &'a inkwell::context::Context,
) -> (&'static str, String, Library) {
let target = target_lexicon::Triple::host();
let mut target = target_lexicon::Triple::host();
target.operating_system = target_lexicon::OperatingSystem::Windows;
let (main_fn_name, delayed_errors, module) =
create_llvm_module(arena, src, config, context, &target);