Skip to content

aws-lc-sys build.rs ignores / overrides TARGET_CC / TARGET_CXX #1025

@jschwe

Description

@jschwe

Problem:

cc-rs will respect TARGET_CC / TARGET_CXX when cross-compiling. However, aws-lc-sys sadly will override these user provided variables here, since the build script only configures the target specific variants (which cc-rs will prefer over the less specific TARGET_CC variable).

This can cause the build to fail when cross-compiling, the user set TARGET_CC to the correct cross-compiler, but aws-lc-sys overrode those.

Encountered in servo when cross-compiling for android: https://github.com/servo/servo/actions/runs/21467527086/job/61832707394#step:14:1106

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