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.
It is possible to specify
-stdlibby writing the following in poac.toml, but it will not work whenCXX=g++.I felt it would be useful if there was a way to make it work for both
CXX=clang++andCXX=g++. I'm not sure what the best way is, but I wrote notes of what I came up with.CXXFLAGSenvironment variable (similar toRUSTFLAGS)