From ca200ff5d5fc1bd4b51146d98746ad50c6d7baef Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 13 Feb 2022 19:39:37 +0000 Subject: [PATCH] gpu-dawn: fix linux build (duplicate symbol main) Signed-off-by: Stephen Gutekanst --- gpu-dawn/build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu-dawn/build.zig b/gpu-dawn/build.zig index 795071cf..f29b6296 100644 --- a/gpu-dawn/build.zig +++ b/gpu-dawn/build.zig @@ -1009,7 +1009,7 @@ fn buildLibSPIRVCross(b: *Builder, step: *std.build.LibExeObjStep, options: Opti "libs/dawn/third_party/vulkan-deps/spirv-cross/src/", &.{ ".cpp", ".c", ".cc" }, &.{}, - &.{ "test", "benchmark" }, + &.{ "test", "benchmark", "main.cpp" }, ) catch unreachable; addCSourceFiles(b, lib, sources.items, flags.items); return lib; @@ -1074,7 +1074,7 @@ fn buildLibAbseilCpp(b: *Builder, step: *std.build.LibExeObjStep, options: Optio "libs/dawn/" ++ dir, &.{ ".cpp", ".c", ".cc" }, &.{}, - &.{ "_test", "_testing", "benchmark" }, + &.{ "_test", "_testing", "benchmark", "print_hash_of.cc", "gaussian_distribution_gentables.cc" }, ) catch unreachable; } addCSourceFiles(b, lib, sources.items, flags.items);