Skip to content

cargo doc does not seem to respect RUSTFLAGS #12481

@yongqli

Description

@yongqli

Problem

In the following repo:
https://github.com/yongqli/bug-test

Running

RUSTFLAGS="-L/opt/homebrew/opt/libomp/lib" cargo build --release

on macOS works, but running

RUSTFLAGS="-L/opt/homebrew/opt/libomp/lib" cargo test --doc

fails with linker error.

Tested on cargo 1.71

Steps

No response

Possible Solution(s)

No response

Notes

On macOs you may need to install dependencies by running brew install libomp.

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions