#Override build_options for specific executable version

1 messages · Page 1 of 1 (latest)

pearl charm
#

I am currently developing end-to-end tests and have implemented a custom test runner due to issues encountered with the built-in test runner. My custom runner requires building two versions of the executable: one with TLS support and one without.

To achieve this, I pass build options to the code. When TLS support is enabled, the code imports a specific file; otherwise, it imports a dummy file.

My intended approach is as follows:

Build a second executable version — if -Dtls_enabled=true, create an executable named zcached_tls.
Override the build option for the original executable to disable TLS support (false), so it imports the dummy file instead.
I am looking for advice on how to properly override the build option for the first executable during this process.

build.zig: https://zigbin.io/693b33

pearl charm
#

Bump