mirror of
https://github.com/openai/codex.git
synced 2026-11-29 00:00:54 +00:00
## Why Bazel release builds need Cargo-compatible Rust and native build-script settings. Platform-specific issues also include Windows command-line limits, MSVC runtime conflicts with V8's allocator, and a missing V8 `__clear_cache` symbol on ARM64 musl. ## What changed - Add `--config=release` settings for thin LTO, four target codegen units, and disabled debug assertions and overflow checks, with separate settings for build tools. - Add opt-in Cargo release profile support for build-script optimization and debug information, preserving explicit C/C++ flags. Give optimized Bubblewrap builds `-O3`, debug symbols, and enabled native assertions. - Statically link the MSVC CRT for Rust and C/C++ target and host dependencies, and disable SQLite intrinsics on x64 MSVC to avoid startup crashes on older CPUs. - Let the Rust process wrapper read its arguments from a multiline parameter file to avoid Windows command-line limits. - Select the ARM64 musl V8 archive containing compiler-rt builtins and raise the Rust recursion limit to `256` in the app-server client, exec, and TUI entry points for release compilation. GitOrigin-RevId: 8f61e62b8735c36209ee92e04a0e0339a70badc5
37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
exports_files([
|
|
"abseil_windows_gnullvm_thread_identity.patch",
|
|
"bzip2_windows_stack_args.patch",
|
|
"llvm_rusty_v8_custom_libcxx.patch",
|
|
"llvm_windows_arm64_powl.patch",
|
|
"llvm_windows_mingw_compat.patch",
|
|
"rules_rust_build_script_tools_transition.patch",
|
|
"rules_rust_compiler_thp.patch",
|
|
"rules_rust_process_wrapper_param_file.patch",
|
|
"rules_rust_release_build_script_profile.patch",
|
|
"rules_rust_windows_execroot_separators.patch",
|
|
"rules_rust_windows_msvc_direct_link_args.patch",
|
|
"rules_rust_windows_process_wrapper_skip_temp_outputs.patch",
|
|
"rules_cc_rusty_v8_custom_libcxx.patch",
|
|
"rules_foreign_cc_make_cppflags.patch",
|
|
"rules_foreign_cc_make_xcompile.patch",
|
|
"rules_foreign_cc_make_msvc_stdint.patch",
|
|
"rules_rs_build_script_deps_annotation.patch",
|
|
"rules_rs_rust_debug_modes.patch",
|
|
"rules_rs_windows_msvc_linker.patch",
|
|
"rules_rs_workspace_package_version.patch",
|
|
"rules_rs_zlib_snapshot_urls.patch",
|
|
"rusty_v8_prebuilt_out_dir.patch",
|
|
"ring_windows_msvc_include_dirs.patch",
|
|
"tikv-jemalloc-sys_make_env.patch",
|
|
"tikv-jemalloc-sys_dependency_flags.patch",
|
|
"v8_bazel_rules.patch",
|
|
"v8_module_deps.patch",
|
|
"v8_source_portability.patch",
|
|
"webrtc-sys_hermetic_darwin_sysroot.patch",
|
|
"windows-link.patch",
|
|
"windows-support-remote-case-aliases.patch",
|
|
"windows-support-native-tools.patch",
|
|
"xz_windows_stack_args.patch",
|
|
"zstd-sys_windows_msvc_include_dirs.patch",
|
|
])
|