Skip to content

Commit 8ec3f41

Browse files
committed
Add strip option to cmake-rn
1 parent 14bbbbb commit 8ec3f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/cmake-rn/src/cli.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ const targetOption = new Option(
106106
"CMake targets to build",
107107
).default([] as string[], "Build all targets of the CMake project");
108108

109+
const stripOption = new Option(
110+
"--strip",
111+
"Strip debug symbols from the final binaries",
112+
).default(false);
113+
109114
const noAutoLinkOption = new Option(
110115
"--no-auto-link",
111116
"Don't mark the output as auto-linkable by react-native-node-api",
@@ -132,6 +137,7 @@ let program = new Command("cmake-rn")
132137
.addOption(defineOption)
133138
.addOption(cleanOption)
134139
.addOption(targetOption)
140+
.addOption(stripOption)
135141
.addOption(noAutoLinkOption)
136142
.addOption(noWeakNodeApiLinkageOption)
137143
.addOption(cmakeJsOption);

0 commit comments

Comments
 (0)