Skip to content

Commit fd157f0

Browse files
authored
Make iree::main static (#20227)
Follow up to #20223 (comment) Signed-off-by: Ivan Butygin <[email protected]>
1 parent 3bfd362 commit fd157f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/iree-check-module-main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ iree_status_t Run(iree_allocator_t host_allocator, int* out_exit_code) {
147147

148148
} // namespace
149149

150-
int main(int argc, char** argv) {
150+
static int main(int argc, char** argv) {
151151
IREE_TRACE_APP_ENTER();
152152

153153
// Pass through flags to gtest (allowing --help to fall through).

tools/iree-run-mlir-main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class ArgParser {
452452

453453
} // namespace
454454

455-
int main(int argc, char** argv) {
455+
static int main(int argc, char** argv) {
456456
IREE_TRACE_APP_ENTER();
457457
IREE_TRACE_ZONE_BEGIN_NAMED(z0, "iree-run-mlir");
458458

0 commit comments

Comments
 (0)