mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Fix failing tests and windows link dependencies
This commit is contained in:
parent
4782bededa
commit
d86678778a
3 changed files with 4 additions and 2 deletions
|
|
@ -115,6 +115,7 @@ pub fn build(b: *Builder) !void {
|
||||||
if (target.isWindows() and target.getAbi() == .gnu) {
|
if (target.isWindows() and target.getAbi() == .gnu) {
|
||||||
// LTO is currently broken on mingw, this can be removed when it's fixed.
|
// LTO is currently broken on mingw, this can be removed when it's fixed.
|
||||||
exe.want_lto = false;
|
exe.want_lto = false;
|
||||||
|
test_stage2.want_lto = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const exe_options = b.addOptions();
|
const exe_options = b.addOptions();
|
||||||
|
|
@ -501,6 +502,7 @@ fn addStaticLlvmOptionsToExe(
|
||||||
if (exe.target.getOs().tag == .windows) {
|
if (exe.target.getOs().tag == .windows) {
|
||||||
exe.linkSystemLibrary("version");
|
exe.linkSystemLibrary("version");
|
||||||
exe.linkSystemLibrary("uuid");
|
exe.linkSystemLibrary("uuid");
|
||||||
|
exe.linkSystemLibrary("ole32");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||||
var case = ctx.exe("hello world with updates", linux_x64);
|
var case = ctx.exe("hello world with updates", linux_x64);
|
||||||
|
|
||||||
case.addError("", &[_][]const u8{
|
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
|
// Incorrect return type
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||||
{
|
{
|
||||||
var case = ctx.exe("darwin hello world with updates", target);
|
var case = ctx.exe("darwin hello world with updates", target);
|
||||||
case.addError("", &[_][]const u8{
|
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
|
// Incorrect return type
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue