Open
Description
Description
I'd like to conditionally define a flag when building a test to allow me to interpose an implementation detail of my library from a test.
I think this would look like:
.target(
name: "Foo",
cSettings: [
.define("TESTING", condition: .when(buildKind: .test)),
]),
Currently one has to use environment variable trickery to enable this sort of behavior which is very gross