ecs:build: use stage1 for tests

This commit is contained in:
Ali Chraghi 2022-08-29 12:05:21 +04:30 committed by Stephen Gutekanst
parent 80266c577e
commit 9f40516841

View file

@ -9,6 +9,10 @@ pub fn build(b: *std.build.Builder) void {
pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget) *std.build.RunStep {
const main_tests = b.addTestExe("ecs-tests", (comptime thisDir()) ++ "/src/main.zig");
// TODO: remove this when tests passed with self-hosted compiler
main_tests.use_stage1 = true;
main_tests.setBuildMode(mode);
main_tests.setTarget(target);
main_tests.install();