Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1be5152

Browse files
authored
Fail GN when impeller backends are enabled which are impossible to build (#40772)
1 parent 89c1b23 commit 1be5152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

impeller/renderer/backend/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ group("backend") {
88
public_deps = []
99

1010
if (impeller_enable_metal) {
11+
assert(is_mac || is_ios)
1112
public_deps += [ "metal" ]
1213
}
1314

1415
if (impeller_enable_opengles) {
16+
assert(is_mac || is_linux || is_win || is_android)
1517
public_deps += [ "gles" ]
1618
}
1719

1820
if (impeller_enable_vulkan) {
21+
assert(is_mac || is_linux || is_win || is_android)
1922
public_deps += [ "vulkan" ]
2023
}
2124
}

0 commit comments

Comments
 (0)