mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
## Why The Bazel V8 source build supported Windows GNU but lacked an MSVC-targeting toolchain to produce `*-pc-windows-msvc` archives. ## What changed - Add opt-in archive targets for native Windows x64 and ARM64 hosts, selected by `//third_party/v8:rusty_v8_native_windows_archive_for_target`. - Fetch pinned LLVM and scope its `clang-cl` toolchain to V8 artifacts, using the installed Microsoft SDK. Bundle Chromium libc++ and compiler-rt builtins into the resulting `.lib`. - Adapt V8 dependencies, assembly, snapshot generation, and platform feature settings for MSVC, and derive test metadata from the selected engine features. - Document the native build workflow. Existing MSVC consumers continue using prebuilt artifacts; generated Rust bindings and publishing integration remain separate. GitOrigin-RevId: abd5049245aece90a116fc3bfeac2b158a76f6af
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
"""Runtime settings for Codex's Highway and simdutf V8 dependencies.
|
|
|
|
These targets build with the same Chromium libc++ headers as V8 when that
|
|
profile is active. Shared libraries such as Abseil remain separate.
|
|
"""
|
|
|
|
RUSTY_V8_DEPENDENCY_COPTS = select({
|
|
"@@//third_party/v8:use_rusty_v8_custom_libcxx_native_windows": [
|
|
"/D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
|
"/D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
|
|
"/D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
|
|
],
|
|
"@@//third_party/v8:use_rusty_v8_custom_libcxx": [
|
|
"-nostdinc++",
|
|
"-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
|
|
"-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
|
|
"-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
|
|
"-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
|
|
],
|
|
"//conditions:default": [],
|
|
})
|
|
|
|
RUSTY_V8_DEPENDENCY_DEPS = select({
|
|
"@@//third_party/v8:use_rusty_v8_custom_libcxx": [
|
|
"@@//third_party/v8:rusty_v8_custom_libcxx_headers",
|
|
],
|
|
"//conditions:default": [],
|
|
})
|