Skip to content

LuaJIT seemingly does not compile on Windows #182

@darltrash

Description

@darltrash

I tried to compile my project with LuaJIT on Windows like this:

> zig build -Doptimize=ReleaseFast -Dtarget=x86_64-windows-gnu
install
└─ install Flowerpot
   └─ compile exe Flowerpot ReleaseFast x86_64-windows-gnu
      └─ compile lib lua ReleaseFast x86_64-windows-gnu
         └─ run exe buildvm (lj_vm.o) failure
Error: no PE object support for this target
error: stderr:
Error: no PE object support for this target

I bundle LuaJIT like this:

const zlua = b.dependency("zlua", .{
    .target = target,
    .optimize = .ReleaseFast,
    .shared = false,
    .lang = .luajit,
});
exe.root_module.addImport("zlua", zlua.module("zlua"));

Not entirely sure why this is happening, but it's pretty bad :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions