Skip to content

Setting MACOSX_DEPLOYMENT_TARGET #166

@mudge

Description

@mudge

In the most recent of re2, I need to target macOS 10.14 due to compilation errors from Abseil such as the following:

error: 'visit<BufferSizeVisitor, std::__1::variant<std::__1::variant<unsigned long long, long long, unsigned int, int, bool>, std::__1::variant<unsigned long long, long long, double>, absl::lts_20250814::Span<const char>, std::__1::variant<unsigned int, int, float> > &>' is unavailable: introduced in macOS 10.14

MACOSX_DEPLOYMENT_TARGET is currently hardcoded to 10.13 in

echo "export MACOSX_DEPLOYMENT_TARGET=10.13" >> /etc/rubybashrc
I’m overriding it by explicitly setting it to 10.14 in my extconf.rb but is there a more “blessed” way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions