mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +00:00
## What changed - Add explicit x64 and ARM64 targets for native builds, runtime preparation, and linking using the existing voice recipes. Each target requires native Windows execution of the matching architecture. - Declare compiler, SDK, Python, and CMake inputs; require an explicitly supplied Cygwin/pkgconf tool tree and a fixed `SystemRoot`. Validate installed tool selections against the manifest and declared files. - Pair Windows DLLs with SDK import libraries, preserve plugin and receipt runfiles, and omit Unix runtime-search flags. Use Python for portable payload copying. - Correct the MSVC ARM64 tool directory casing to `HostArm64` and document provisioning and build commands. The generic Rust-consumer aliases remain separate; native Windows Bazel execution and consumer validation are still needed to establish complete Windows voice support. ## Testing Add eight unit tests covering tool selection, path anchoring, invalid inputs, and DLL/import-library copying, plus x64 and ARM64 link smoke targets that reference `gst_version`. GitOrigin-RevId: fb2b4998e9ffb5b64ca830ebf4bb4633fc959eb9
20 lines
603 B
Python
20 lines
603 B
Python
"""Copy declared library payloads while keeping a real native-search directory."""
|
|
|
|
from pathlib import Path
|
|
import shutil
|
|
import sys
|
|
|
|
|
|
def copy_payloads(locator, pairs):
|
|
if len(pairs) % 2:
|
|
raise ValueError("library copies require source/destination pairs")
|
|
Path(locator).mkdir(parents=True, exist_ok=True)
|
|
for source, destination in zip(pairs[::2], pairs[1::2], strict=True):
|
|
output = Path(destination)
|
|
output.parent.mkdir(parents=True, exist_ok=True)
|
|
shutil.copyfile(source, output)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
copy_payloads(sys.argv[1], sys.argv[2:])
|