Skip to content

build.rs: Respect CXXSTDLIB #662

@jschwe

Description

@jschwe

mozjs/mozjs-sys/build.rs

Lines 572 to 574 in ad7c039

if is_apple || is_freebsd || is_ohos {
flags.push("-stdlib=libc++");
}

We should first check CXXSTDLIB and respect it if set, and fallback to the hardcoded assumption only when not overriden.
cc-rs also respects this variable.

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