Commit d86678778a
Changed files (3)
test
stage2
test/stage2/darwin.zig
@@ -14,7 +14,7 @@ pub fn addCases(ctx: *TestContext) !void {
{
var case = ctx.exe("darwin hello world with updates", target);
case.addError("", &[_][]const u8{
- ":95:9: error: struct 'tmp.tmp' has no member named 'main'",
+ ":97:9: error: struct 'tmp.tmp' has no member named 'main'",
});
// Incorrect return type
test/cases.zig
@@ -26,7 +26,7 @@ pub fn addCases(ctx: *TestContext) !void {
var case = ctx.exe("hello world with updates", linux_x64);
case.addError("", &[_][]const u8{
- ":95:9: error: struct 'tmp.tmp' has no member named 'main'",
+ ":97:9: error: struct 'tmp.tmp' has no member named 'main'",
});
// Incorrect return type
build.zig
@@ -115,6 +115,7 @@ pub fn build(b: *Builder) !void {
if (target.isWindows() and target.getAbi() == .gnu) {
// LTO is currently broken on mingw, this can be removed when it's fixed.
exe.want_lto = false;
+ test_stage2.want_lto = false;
}
const exe_options = b.addOptions();
@@ -501,6 +502,7 @@ fn addStaticLlvmOptionsToExe(
if (exe.target.getOs().tag == .windows) {
exe.linkSystemLibrary("version");
exe.linkSystemLibrary("uuid");
+ exe.linkSystemLibrary("ole32");
}
}