mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 00:22:33 +00:00
fd6d5f1609
* Don't skip the TLS initialization (Fixes #9083) * Add a test case where a PIE program is built and run * Refactor the common initialization code in the Linux startup sequence.
13 lines
330 B
Zig
13 lines
330 B
Zig
const Builder = @import("std").build.Builder;
|
|
|
|
pub fn build(b: *Builder) void {
|
|
const main = b.addTest("main.zig");
|
|
main.setBuildMode(b.standardReleaseOptions());
|
|
main.pie = true;
|
|
|
|
const test_step = b.step("test", "Test the program");
|
|
test_step.dependOn(&main.step);
|
|
|
|
b.default_step.dependOn(test_step);
|
|
}
|