You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Populate CFLAGS and CXXFLAGS when invoking build script.
Downstream tools (in particular cc-rs) depend on them being set.
The particular use case that I noticed was broken was the macos
deployment target (specified via the --macos_minimun_os Bazel option)
wasn't being applied on binaries being built via cc-rs in a build.rs
script. This was causing all sort of bugs such as symbols not being
weakly linked since it was using the SDK version (the default) for the
deployment target and bazel-built Rust binaries wouldn't load on older
OS versions due to failures to resolve symbols at runtime, even though
the deployment target was correctly set in Bazel.
0 commit comments