Open watiko opened 1 month ago
@watiko For conditional CXXFLAGS, I think adding cfg
works better. For example:
[target.'cfg(compiler = "clang++")'.profile]
cxxflags = ["-stdlib=libc++"]
For fixing CXX to a specific compiler, I am not sure that we should do it. Let me think of it.
It is possible to specify
-stdlib
by 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.CXXFLAGS
environment variable (similar toRUSTFLAGS
)