aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/openmp/ya.make
blob: c4f2170d7540933c3aaca8f31f05cd08ab3aa94f (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
LIBRARY()

LICENSE(
    MIT AND
    NCSA
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(5.0)

OWNER(
    pg
    g:contrib
    g:cpp-contrib
)

NO_UTIL()

NO_PLATFORM()

NO_COMPILER_WARNINGS()

IF (SANITIZER_TYPE == thread)
    NO_SANITIZE()
    CFLAGS(
        -fPIC
    )
ENDIF()

IF (SANITIZER_TYPE == memory)
    NO_SANITIZE()
    CFLAGS(
        -fPIC
    )
ENDIF()

COMPILE_C_AS_CXX()

CXXFLAGS(-fno-exceptions)

SET_APPEND(CFLAGS -fno-lto)

ADDINCL(
    GLOBAL contrib/libs/cxxsupp/openmp
)

ADDINCL(
    contrib/libs/cxxsupp/openmp/thirdparty/ittnotify
)

SRCS(
    asm.S
    kmp_affinity.cpp
    kmp_alloc.c
    kmp_atomic.c
    kmp_barrier.cpp
    kmp_cancel.cpp
    kmp_csupport.c
    kmp_debug.c
    kmp_dispatch.cpp
    kmp_environment.c
    kmp_error.c
    kmp_ftn_cdecl.c
    kmp_ftn_extra.c
    kmp_global.c
    kmp_gsupport.c
    kmp_i18n.c
    kmp_io.c
    kmp_itt.c
    kmp_lock.cpp
    kmp_runtime.c
    kmp_sched.cpp
    kmp_settings.c
    kmp_str.c
    kmp_taskdeps.cpp
    kmp_tasking.c
    kmp_taskq.c
    kmp_threadprivate.c
    kmp_utility.c
    kmp_version.c
    kmp_wait_release.cpp
    #ompt-general.c
    thirdparty/ittnotify/ittnotify_static.c
    z_Linux_util.c
)

END()