#What is the build.zig equivalent of "-rdynamic"?

1 messages · Page 1 of 1 (latest)

half jay
#

me stupid me do not no

#

also how can I tell build.zig to only poop out an executable as wasm32-freestanding?

still tangle
#

exe.rdynamic = true;

half jay
#

noice

#

and how do I force it to just compile it to that one platform?

still tangle
#

look into std.zig,CrossTarget

#

what i do to compile for uefi

    const target = CrossTarget{
        .cpu_arch = Target.Cpu.Arch.x86_64,
        .os_tag = Target.Os.Tag.uefi,
        .abi = Target.Abi.msvc,
    };
const Target = std.Target;
const CrossTarget = std.zig.CrossTarget;
half jay
#

oh cool