Skip to content

Consider adding nostdlib++ whenever a stdlib is explicitly indicated #532

@jwbee

Description

@jwbee

This toolchain adds enough flags to cause programs to be linked to libc++ and libc++abi, in which case the build will succeed with the -nostdlib++ flag. The flag will also prevent the eventuality that a program is linked to both libc++ and libstdc++. Consider adding it to the toolchain flags where appropriate.

A related safety improvement would be to add nostdinc++ whenever the libc++ header paths are being given as flags, to prevent searching for (and erroneously finding) the GNU c++ headers.

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