mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Removed obsolete targets
This commit is contained in:
parent
b10b30ab0e
commit
d9138ef8ba
@ -1,11 +0,0 @@
|
||||
include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
|
||||
|
||||
foreach (T longjmp siglongjmp)
|
||||
add_executable (${T} ${T}.c)
|
||||
target_link_libraries (${T} PRIVATE glibc-compatibility)
|
||||
if (USE_LIBCXX)
|
||||
target_link_libraries (${T} PRIVATE Threads::Threads)
|
||||
endif ()
|
||||
set_target_properties (${T} PROPERTIES LINKER_LANGUAGE CXX)
|
||||
add_check (${T})
|
||||
endforeach ()
|
@ -1,23 +0,0 @@
|
||||
#include <setjmp.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
jmp_buf env;
|
||||
int val;
|
||||
volatile int count = 0;
|
||||
val = setjmp(env);
|
||||
++count;
|
||||
if (count == 1 && val != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (count == 2 && val == 42)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (count == 1)
|
||||
{
|
||||
longjmp(env, 42);
|
||||
}
|
||||
return 1;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
#include <setjmp.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
sigjmp_buf env;
|
||||
int val;
|
||||
volatile int count = 0;
|
||||
val = sigsetjmp(env, 0);
|
||||
++count;
|
||||
if (count == 1 && val != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (count == 2 && val == 42)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (count == 1)
|
||||
{
|
||||
siglongjmp(env, 42);
|
||||
}
|
||||
return 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user