gpu-dawn: fix linux build (duplicate symbol main)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-13 19:39:37 +00:00
parent d23147b653
commit ca200ff5d5

View file

@ -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);