mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Don't use emit-h in test cases for other backends.
This commit is contained in:
parent
e834d0369a
commit
0771aac48b
11
src/test.zig
11
src/test.zig
@ -564,10 +564,13 @@ pub const TestContext = struct {
|
||||
.directory = emit_directory,
|
||||
.basename = bin_name,
|
||||
};
|
||||
const emit_h: Compilation.EmitLoc = .{
|
||||
.directory = emit_directory,
|
||||
.basename = "test_case.h",
|
||||
};
|
||||
const emit_h: ?Compilation.EmitLoc = if (case.cbe)
|
||||
.{
|
||||
.directory = emit_directory,
|
||||
.basename = "test_case.h",
|
||||
}
|
||||
else
|
||||
null;
|
||||
const comp = try Compilation.create(allocator, .{
|
||||
.local_cache_directory = zig_cache_directory,
|
||||
.global_cache_directory = zig_cache_directory,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user