mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Native voice builds ignore ambient compiler flags, but need a way to accept declared compiler, linker, and archive-tool inputs. ## What changed - Add repeated `--c-flag`, `--cxx-flag`, and `--link-flag` options plus optional `--ar` and `--ranlib` paths for Unix builds. Record flags and pass them through CMake, Meson, and libffi, including Objective-C flags on macOS. - Preserve literal libffi compiler arguments with response files. Reject flags containing whitespace, libffi paths requiring shell quoting, and Unix toolchain overrides on Windows. - Add a pinned Bazel `pkg-config` tool built with LLVM archive tools and native macOS configure checks. Register the pinned Make toolchain and patch its bootstrap to pass preprocessor flags and enable cross-compilation configuration. ## Testing Extend native-build tests to verify compiler and linker flags, explicit archive tools, Meson and Objective-C inputs, literal definitions through shell and recursive Make expansion, and rejection of unsupported overrides. GitOrigin-RevId: e5ea541ec76abfa170f6b0411b0f14cd698c07e7
11 lines
304 B
Diff
11 lines
304 B
Diff
diff --git a/toolchains/private/BUILD.bazel b/toolchains/private/BUILD.bazel
|
|
--- a/toolchains/private/BUILD.bazel
|
|
+++ b/toolchains/private/BUILD.bazel
|
|
@@ -23,5 +23,6 @@
|
|
make_tool(
|
|
name = "make_tool",
|
|
srcs = "@gnumake_src//:all_srcs",
|
|
+ configure_xcompile = True,
|
|
tags = ["manual"],
|
|
)
|