Skip to content

Commit

Permalink
disable for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Sep 5, 2023
1 parent 74ab7f5 commit f4545ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/xplatform/macros/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ load("//swift:swift_compiler_plugin.bzl", "swift_compiler_plugin")

licenses(["notice"])

config_setting(
name = "supports_macros",
values = {"define": "supports_macros=1"},
)

swift_library(
name = "stringify",
srcs = ["Stringify.swift"],
Expand All @@ -17,6 +22,10 @@ swift_compiler_plugin(
"StringifyMacroPlugin.swift",
],
module_name = "StringifyMacroPlugin",
target_compatible_with = select({
":supports_macros": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
deps = [
"@SwiftSyntax",
"@SwiftSyntax//:SwiftCompilerPlugin",
Expand All @@ -40,4 +49,8 @@ swift_test(
"@SwiftSyntax//:SwiftSyntaxBuilder",
"@SwiftSyntax//:SwiftSyntaxMacros",
],
target_compatible_with = select({
":supports_macros": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)

0 comments on commit f4545ab

Please # to comment.