Skip to content

Commit d686eff

Browse files
committed
chore: fix musl arm build
1 parent 9694318 commit d686eff

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

programs/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ const char * __ubsan_default_options()
6464
#pragma clang diagnostic pop
6565
#endif
6666

67+
#if defined(USE_MUSL) && defined(__aarch64__)
68+
void main_musl_compile_stub(int arg)
69+
{
70+
jmp_buf buf1;
71+
sigjmp_buf buf2;
72+
73+
setjmp(buf1);
74+
sigsetjmp(buf2, arg);
75+
}
76+
#endif
77+
6778
/// Universal executable for various clickhouse applications
6879
int mainEntryClickHouseBenchmark(int argc, char ** argv);
6980
int mainEntryClickHouseCheckMarks(int argc, char ** argv);

0 commit comments

Comments
 (0)