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
12 lines
357 B
C++
12 lines
357 B
C++
// Force a real final link against the prepared GStreamer import library.
|
|
extern "C" void gst_version(unsigned int*, unsigned int*, unsigned int*, unsigned int*);
|
|
|
|
int main() {
|
|
unsigned int major = 0;
|
|
unsigned int minor = 0;
|
|
unsigned int micro = 0;
|
|
unsigned int nano = 0;
|
|
gst_version(&major, &minor, µ, &nano);
|
|
return major == 1 ? 0 : 1;
|
|
}
|