mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
22 lines
660 B
Python
22 lines
660 B
Python
package(default_visibility = ["//swift:__subpackages__"])
|
|
|
|
#TODO we will be introducing universal binaries at a later stage, when we have both architectures prebuilt for macOS
|
|
# for the moment, we make arm build an x86_64 binary
|
|
_arch_override = {
|
|
"darwin_arm64": "darwin_x86_64",
|
|
}
|
|
|
|
[
|
|
alias(
|
|
name = name,
|
|
actual = select({
|
|
"@bazel_tools//src/conditions:%s" % arch: "@swift_prebuilt_%s//:%s" % (
|
|
_arch_override.get(arch, arch),
|
|
name,
|
|
)
|
|
for arch in ("linux", "darwin_x86_64", "darwin_arm64")
|
|
}),
|
|
)
|
|
for name in ("swift-llvm-support", "swift-test-sdk")
|
|
]
|