Base: codex-main originale (prima del fork aKode)

This commit is contained in:
Andrea
2026-11-09 10:37:42 +01:00
commit 7874033c81
10166 changed files with 2728937 additions and 0 deletions

26
third_party/v8/libcxx_rules.bzl vendored Normal file
View File

@@ -0,0 +1,26 @@
"""Select the installed SDK-capable toolchain for native Windows libc++."""
load("@llvm//toolchain/runtimes:cc_runtime_library.bzl", "cc_runtime_stage0_library")
load("@rules_cc//cc:defs.bzl", "cc_library")
def libcxx_library(name, **kwargs):
cc_runtime_stage0_library(
name = name + "_stage0",
**kwargs
)
cc_library(
name = name + "_native_windows",
linkstatic = True,
target_compatible_with = select({
"@//third_party/v8:use_rusty_v8_custom_libcxx_native_windows": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
**kwargs
)
native.alias(
name = name,
actual = select({
"@//third_party/v8:use_rusty_v8_custom_libcxx_native_windows": ":" + name + "_native_windows",
"//conditions:default": ":" + name + "_stage0",
}),
)