From 2a54be7f86df9001d2d0ba114fc2dac8c6611cd7 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Sun, 24 Mar 2024 00:18:21 -0700 Subject: [PATCH] chore: select switch --- ecsact/cli/commands/build/recipe/BUILD.bazel | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ecsact/cli/commands/build/recipe/BUILD.bazel b/ecsact/cli/commands/build/recipe/BUILD.bazel index 308bffa..cb8d9ea 100644 --- a/ecsact/cli/commands/build/recipe/BUILD.bazel +++ b/ecsact/cli/commands/build/recipe/BUILD.bazel @@ -25,7 +25,12 @@ cc_library( "//:use_sdk_version_enabled": ["ECSACT_CLI_USE_SDK_VERSION"], "//:use_sdk_version_disabled": [], }), - linkopts = ["/DEFAULTLIB:Wldap32.lib"], + linkopts = select({ + "@rules_cc//cc/compiler:msvc-cl": [ + "/DEFAULTLIB:Wldap32.lib", + ], + "//conditions:default": [], + }), deps = [ "//ecsact/cli:report", "//ecsact/cli/detail:argv0",