Hi there,
Is it possible to specify rustflags in the .cargo/config file only for target build and not for tests?
Suppose I have the following in the config file:
[build]
rustflags = ["-C", "link-args=exports.def"]
I need to skip this when running cargo test
. Tried with the following but it didn't work:
[target.'cfg(not(test))']
rustflags = ["-C", "link-args=exports.def"]