Skip to content

How to specify -stdlib when using clang++ #923

@watiko

Description

@watiko

It is possible to specify -stdlib by writing the following in poac.toml, but it will not work when CXX=g++.

[profile]
cxxflags = ["-stdlib=libc++"]

I felt it would be useful if there was a way to make it work for both CXX=clang++ and CXX=g++. I'm not sure what the best way is, but I wrote notes of what I came up with.

  • Add CXXFLAGS environment variable (similar to RUSTFLAGS)
  • Allow CXX to be fixed in poac.toml (profile.cxx?) to avoid confusion if only one cxx is assumed.

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