add missing pic

This commit is contained in:
Brendan Hansknecht 2024-12-11 20:08:44 -08:00
parent 67bee420e9
commit 6b54e09565
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -73,7 +73,7 @@ fn generateLlvmIrFile(
step_name: []const u8,
object_name: []const u8,
) void {
const obj = b.addObject(.{ .strip = true, .name = object_name, .root_source_file = main_path, .optimize = mode, .target = target, .use_llvm = true });
const obj = b.addObject(.{ .strip = true, .pic = true, .name = object_name, .root_source_file = main_path, .optimize = mode, .target = target, .use_llvm = true });
obj.root_module.stack_check = false;