aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/openmp/ya.make
blob: 8ee63912201501df8c284d47e115a702f16c962f (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
89
90
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/i18n
    contrib/libs/cxxsupp/openmp/include/41
    contrib/libs/cxxsupp/openmp/thirdparty/ittnotify
)

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

END()