blob: 0ed9d696fe28cdd7975f32d4eb9913c28d65d972 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
LIBRARY()
LICENSE(BSL-1.0)
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
OWNER(
antoshkka
g:cpp-committee
g:cpp-contrib
)
INCLUDE(${ARCADIA_ROOT}/contrib/restricted/boost/boost_common.inc)
CFLAGS(
-DBOOST_CONTEXT_SOURCE
)
# https://www.boost.org/doc/libs/1_74_0/libs/context/doc/html/context/stack/sanitizers.html
IF (SANITIZER_TYPE == "address")
CFLAGS(
GLOBAL -DBOOST_USE_UCONTEXT
GLOBAL -DBOOST_USE_ASAN
)
SRCS(
src/continuation.cpp
src/fiber.cpp
)
ENDIF()
IF (OS_WINDOWS)
IF (ARCH_X86_64 OR ARCH_I386)
MASMFLAGS('-DBOOST_CONTEXT_EXPORT= /safeseh')
ENDIF()
SRCS(
src/windows/stack_traits.cpp
)
IF (ARCH_X86_64 OR ARCH_I386)
IF (ARCH_X86_64)
SRCS(
src/asm/jump_x86_64_ms_pe_masm.masm
src/asm/make_x86_64_ms_pe_masm.masm
src/asm/ontop_x86_64_ms_pe_masm.masm
)
ENDIF()
IF (ARCH_I386)
SRCS(
src/asm/jump_i386_ms_pe_masm.masm
src/asm/make_i386_ms_pe_masm.masm
src/asm/ontop_i386_ms_pe_masm.masm
)
ENDIF()
ENDIF()
IF (ARCH_ARM)
SRCS(
src/asm/jump_arm_aapcs_pe_armasm.masm
src/asm/make_arm_aapcs_pe_armasm.masm
src/asm/ontop_arm_aapcs_pe_armasm.masm
)
ENDIF()
ELSEIF (OS_DARWIN OR OS_IOS)
IF (ARCH_ARM7)
SRCS(
src/asm/jump_arm_aapcs_macho_gas.S
src/asm/make_arm_aapcs_macho_gas.S
src/asm/ontop_arm_aapcs_macho_gas.S
)
ELSEIF (ARCH_ARM64)
SRCS(
src/asm/jump_arm64_aapcs_macho_gas.S
src/asm/make_arm64_aapcs_macho_gas.S
src/asm/ontop_arm64_aapcs_macho_gas.S
)
ELSEIF (ARCH_I386)
SRCS(
src/asm/jump_i386_sysv_macho_gas.S
src/asm/make_i386_sysv_macho_gas.S
src/asm/ontop_i386_sysv_macho_gas.S
)
ELSE()
SRCS(
src/asm/jump_x86_64_sysv_macho_gas.S
src/asm/make_x86_64_sysv_macho_gas.S
src/asm/ontop_x86_64_sysv_macho_gas.S
)
ENDIF()
SRCS(
src/posix/stack_traits.cpp
)
ELSE()
IF (ARCH_ARM7)
SRCS(
src/asm/jump_arm_aapcs_elf_gas.S
src/asm/make_arm_aapcs_elf_gas.S
src/asm/ontop_arm_aapcs_elf_gas.S
)
ELSEIF (ARCH_ARM64)
SRCS(
src/asm/jump_arm64_aapcs_elf_gas.S
src/asm/make_arm64_aapcs_elf_gas.S
src/asm/ontop_arm64_aapcs_elf_gas.S
)
ELSEIF (ARCH_I386)
SRCS(
src/asm/jump_i386_sysv_elf_gas.S
src/asm/make_i386_sysv_elf_gas.S
src/asm/ontop_i386_sysv_elf_gas.S
)
ELSE()
SRCS(
src/asm/jump_x86_64_sysv_elf_gas.S
src/asm/make_x86_64_sysv_elf_gas.S
src/asm/ontop_x86_64_sysv_elf_gas.S
)
ENDIF()
SRCS(
src/posix/stack_traits.cpp
)
ENDIF()
END()
|