Skip to content

Commit

Permalink
Bulk reformat all Bazel files
Browse files Browse the repository at this point in the history
  • Loading branch information
npaun committed Aug 21, 2024
1 parent b3f78e3 commit 0de6815
Show file tree
Hide file tree
Showing 28 changed files with 480 additions and 426 deletions.
15 changes: 11 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ load("@npm//:defs.bzl", "npm_link_all_packages")
cc_capnp_library(
name = "icudata-embed",
srcs = ["icudata-embed.capnp"],
data = ["@com_googlesource_chromium_icu//:icudata"],
defines = ["WORKERD_ICU_DATA_EMBED"],
include_prefix = ".",
visibility = ["//visibility:public"],
data = ["@com_googlesource_chromium_icu//:icudata"],
defines = [ "WORKERD_ICU_DATA_EMBED" ],
)

npm_link_all_packages(name = "node_modules")
Expand Down Expand Up @@ -75,10 +75,17 @@ config_setting(
# Workaround for bazel not supporting negated conditions (https://github.com/bazelbuild/bazel-skylib/issues/272)
selects.config_setting_group(
name = "not_dbg_build",
match_any = [":fast_build", ":opt_build"],
match_any = [
":fast_build",
":opt_build",
],
)

selects.config_setting_group(
name = "use_dead_strip",
match_all = ["@platforms//os:macos", ":set_dead_strip", ":not_dbg_build"],
match_all = [
"@platforms//os:macos",
":set_dead_strip",
":not_dbg_build",
],
)
6 changes: 3 additions & 3 deletions build/BUILD.dawn
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ genrule(
outs = [
"include/dawn/dawn_proc_table.h",
"include/dawn/webgpu.h",
"include/dawn/wire/client/webgpu.h"
"include/dawn/wire/client/webgpu.h",
],
cmd = "$(location :dawn_json_generator) " +
"--dawn-json $(location src/dawn/dawn.json) " +
Expand Down Expand Up @@ -1101,12 +1101,12 @@ cc_library(
"src",
"src/dawn/partition_alloc",
],
visibility = ["//visibility:public"],
deps = [
"@dawn//src/tint/lang/wgsl/features",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@dawn//src/tint/lang/wgsl/features",
],
visibility = ["//visibility:public"],
)

cc_library(
Expand Down
2 changes: 1 addition & 1 deletion build/BUILD.simdutf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ cc_library(
name = "simdutf",
srcs = ["simdutf.cpp"],
hdrs = ["simdutf.h"],
visibility = ["//visibility:public"],
copts = ["-w"],
visibility = ["//visibility:public"],
)
Loading

0 comments on commit 0de6815

Please sign in to comment.