aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libunwind/ya.make
blob: 39141abcdb3c271b486a7e0975d0553198c924c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Generated by devtools/yamaker from nixpkgs 21.11.

LIBRARY() 
 
OWNER(
    pg
    somov
    g:cpp-contrib
)
 
VERSION(2022-02-05)
 
ORIGINAL_SOURCE(https://github.com/llvm/llvm-project/archive/2b9554b8850192bdd86c02eb671de1d866df8d87.tar.gz)

LICENSE(
    Apache-2.0 AND
    Apache-2.0 WITH LLVM-exception AND
    MIT AND
    NCSA
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

DISABLE(USE_LTO)
 
ADDINCL(
    contrib/libs/libunwind/include
)
 
NO_RUNTIME()

NO_UTIL()

NO_SANITIZE()

NO_SANITIZE_COVERAGE()

CFLAGS(
    GLOBAL -D_libunwind_
    -D_LIBUNWIND_IS_NATIVE_ONLY
    -fno-exceptions
    -fno-rtti 
    -funwind-tables 
) 
 
IF (SANITIZER_TYPE == memory)
    CFLAGS(
        -fPIC
    )
ENDIF()
 
SRCS( 
    src/Unwind-EHABI.cpp
    src/Unwind-seh.cpp
    src/Unwind-sjlj.c
    src/UnwindLevel1-gcc-ext.c
    src/UnwindLevel1.c
    src/UnwindRegistersRestore.S
    src/UnwindRegistersSave.S
    src/libunwind.cpp
) 
 
IF (OS_DARWIN OR OS_IOS)
    SRCS( 
        src/Unwind_AppleExtras.cpp
    ) 
ENDIF()
 
END()
 
RECURSE_FOR_TESTS(
    ut
)