Run buildifier on bazel/ (#913)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package(default_visibility = ['//visibility:public'])
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
config_setting(
|
||||
name = "linux",
|
||||
@@ -41,4 +41,3 @@ alias(
|
||||
":windows": "@emscripten_npm_win//:node_modules",
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
workspace(name = "emsdk")
|
||||
|
||||
load(":deps.bzl", "deps")
|
||||
|
||||
deps()
|
||||
|
||||
load(":emscripten_deps.bzl", "emscripten_deps")
|
||||
|
||||
emscripten_deps()
|
||||
|
||||
@@ -9,7 +9,7 @@ def emscripten_deps(emscripten_version = "latest"):
|
||||
version = emscripten_version
|
||||
|
||||
if version == "latest":
|
||||
version = reversed(sorted(EMSCRIPTEN_TAGS.keys(), key=_parse_version))[0]
|
||||
version = reversed(sorted(EMSCRIPTEN_TAGS.keys(), key = _parse_version))[0]
|
||||
|
||||
if version not in EMSCRIPTEN_TAGS.keys():
|
||||
error_msg = "Emscripten version {} not found.".format(version)
|
||||
|
||||
@@ -9,9 +9,9 @@ filegroup(
|
||||
"emcc.sh",
|
||||
"emscripten_config",
|
||||
"env.sh",
|
||||
"@nodejs//:node_files",
|
||||
"@emsdk//:binaries",
|
||||
"@emsdk//:node_modules",
|
||||
"@nodejs//:node_files",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -437,7 +437,6 @@ def _impl(ctx):
|
||||
# https://emscripten.org/docs/debugging/Sanitizers.html
|
||||
feature(name = "wasm_asan"),
|
||||
feature(name = "wasm_ubsan"),
|
||||
|
||||
feature(
|
||||
name = "output_format_js",
|
||||
enabled = True,
|
||||
@@ -518,7 +517,7 @@ def _impl(ctx):
|
||||
# Language Features
|
||||
flag_set(
|
||||
actions = all_cpp_compile_actions,
|
||||
flags = ["-std=gnu++17", "-nostdinc", "-nostdinc++",],
|
||||
flags = ["-std=gnu++17", "-nostdinc", "-nostdinc++"],
|
||||
),
|
||||
|
||||
# Emscripten-specific settings:
|
||||
@@ -910,7 +909,8 @@ def _impl(ctx):
|
||||
"-iwithsysroot" + "/include/c++/v1",
|
||||
"-iwithsysroot" + "/include/compat",
|
||||
"-iwithsysroot" + "/include",
|
||||
"-isystem", emscripten_dir + "/lib/clang/14.0.0/include",
|
||||
"-isystem",
|
||||
emscripten_dir + "/lib/clang/14.0.0/include",
|
||||
],
|
||||
),
|
||||
# Inputs and outputs
|
||||
@@ -1103,7 +1103,7 @@ emscripten_cc_toolchain_config_rule = rule(
|
||||
implementation = _impl,
|
||||
attrs = {
|
||||
"cpu": attr.string(mandatory = True, values = ["asmjs", "wasm"]),
|
||||
"em_config": attr.label(mandatory = True, allow_single_file=True),
|
||||
"em_config": attr.label(mandatory = True, allow_single_file = True),
|
||||
"emscripten_binaries": attr.label(mandatory = True),
|
||||
},
|
||||
provides = [CcToolchainConfigInfo],
|
||||
|
||||
@@ -4,7 +4,9 @@ local_repository(
|
||||
)
|
||||
|
||||
load("@emsdk//:deps.bzl", "deps")
|
||||
|
||||
deps()
|
||||
|
||||
load("@emsdk//:emscripten_deps.bzl", "emscripten_deps")
|
||||
|
||||
emscripten_deps()
|
||||
|
||||
Reference in New Issue
Block a user