Skip to content

Commit fb45402

Browse files
committed
Assert triplet platform is supported by host
1 parent 8de6f11 commit fb45402

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cmake-rn/src/cli.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ program = program.action(
219219
const tripletContexts = [...triplets].map((triplet) => {
220220
const platform = findPlatformForTriplet(triplet);
221221

222+
assert(
223+
platform.isSupportedByHost(),
224+
`Triplet '${triplet}' cannot be built, as the '${platform.name}' platform is not supported on a '${process.platform}' host.`,
225+
);
226+
222227
return {
223228
triplet,
224229
platform,

0 commit comments

Comments
 (0)