Files
swift-mirror/test/Frontend/print-static-build-config.swift
Daniel Rodríguez Troitiño 4c3471aed5 [test] Allow custom conditions for non-standard compilations (#84632)
If someone has configured their build to add some vendor macro, for
example, the vendor macro will appear in `customConditions`, which will
make the test fail.

Modify the test slightly to check for `customConditions` containing
`"SOMETHING"`, instead of only being `["SOMETHING"]` and nothing else.
This should still allow the test to pass in Swift CI, but allows vendor
macros to work too.
2025-10-02 08:24:12 -07:00

11 lines
290 B
Swift

// RUN: %target-swift-frontend -print-static-build-config -DSOMETHING | %FileCheck %s
// REQUIRES: swift_swift_parser
// CHECK: "attributes":
// CHECK-SAME: "escaping"
// CHECK-SAME: "customConditions":[{{.*"SOMETHING"[^]]*\]}}
// CHECK-SAME: "features":
// CHECK-SAME: "AttachedMacros"