File tree 3 files changed +49
-14
lines changed
3 files changed +49
-14
lines changed Original file line number Diff line number Diff line change 9
9
displayName : Linux
10
10
pool :
11
11
vmImage : ' ubuntu-18.04'
12
- container : snmallocciteam/build_linux_x64:latest
13
12
14
13
strategy :
15
14
matrix :
16
- Clang-7 Debug :
15
+ 64-bit Clang-7 Debug :
17
16
CC : clang-7
18
17
CXX : clang++-7
19
18
BuildType : Debug
20
19
SelfHost : false
21
20
CMakeArgs : ' '
21
+ Image : snmallocciteam/build_linux_x64:latest
22
22
23
- Clang-7 Release :
23
+ 64-bit Clang-7 Release :
24
24
CC : clang-7
25
25
CXX : clang++-7
26
26
BuildType : Release
27
27
SelfHost : false
28
28
CMakeArgs : ' '
29
+ Image : snmallocciteam/build_linux_x64:latest
29
30
30
- Clang-8 Debug :
31
+ 64-bit Clang-8 Debug :
31
32
CC : clang-8
32
33
CXX : clang++-8
33
34
BuildType : Debug
34
35
SelfHost : false
35
36
CMakeArgs : ' '
37
+ Image : snmallocciteam/build_linux_x64:latest
36
38
37
- Clang-8 Release :
39
+ 64-bit Clang-8 Release :
38
40
CC : clang-8
39
41
CXX : clang++-8
40
42
BuildType : Release
41
43
SelfHost : false
42
44
CMakeArgs : ' '
45
+ Image : snmallocciteam/build_linux_x64:latest
43
46
44
- Clang-9 Debug :
47
+ 64-bit Clang-9 Debug :
45
48
CC : clang-9
46
49
CXX : clang++-9
47
50
BuildType : Debug
48
51
SelfHost : false
49
52
CMakeArgs : ' '
53
+ Image : snmallocciteam/build_linux_x64:latest
50
54
51
- Clang-9 Release :
55
+ 64-bit Clang-9 Release :
52
56
CC : clang-9
53
57
CXX : clang++-9
54
58
BuildType : Release
55
59
SelfHost : false
56
60
CMakeArgs : ' '
61
+ Image : snmallocciteam/build_linux_x64:latest
57
62
58
- GCC-8 Debug :
63
+ 64-bit GCC-8 Debug :
59
64
CC : gcc-8
60
65
CXX : g++-8
61
66
BuildType : Debug
62
67
SelfHost : false
63
68
CMakeArgs : ' '
69
+ Image : snmallocciteam/build_linux_x64:latest
64
70
65
- GCC-8 Release :
71
+ 64-bit GCC-8 Release :
66
72
CC : gcc-8
67
73
CXX : g++-8
68
74
BuildType : Release
69
75
SelfHost : false
70
76
CMakeArgs : ' '
77
+ Image : snmallocciteam/build_linux_x64:latest
71
78
72
- Self Host :
79
+ 64-bit Self Host :
73
80
CC : clang-7
74
81
CXX : clang++-7
75
82
BuildType : Debug
76
83
SelfHost : true
77
84
CMakeArgs : ' '
85
+ Image : snmallocciteam/build_linux_x64:latest
78
86
79
- Cache Friendly :
87
+ 64-bit Cache Friendly :
80
88
CC : clang-7
81
89
CXX : clang++-7
82
90
BuildType : Debug
83
91
SelfHost : false
84
92
CMakeArgs : ' -DCACHE_FRIENDLY_OFFSET=64'
93
+ Image : snmallocciteam/build_linux_x64:latest
85
94
95
+ 32-bit Clang-9 Debug :
96
+ CC : clang-9
97
+ CXX : clang++-9
98
+ BuildType : Debug
99
+ SelfHost : false
100
+ CMakeArgs : ' '
101
+ Image : snmallocciteam/build_linux_x86:latest
102
+
103
+ 32-bit Clang-9 Release :
104
+ CC : clang-9
105
+ CXX : clang++-9
106
+ BuildType : Release
107
+ SelfHost : false
108
+ CMakeArgs : ' '
109
+ Image : snmallocciteam/build_linux_x86:latest
110
+
111
+ container : $[ variables['Image'] ]
86
112
steps :
87
113
- script : |
114
+ set -eo pipefail
88
115
ci/scripts/build.sh
89
116
env:
90
117
CC: $(CC)
91
118
CXX: $(CXX)
92
119
BUILD_TYPE: $(BuildType)
93
120
CMAKE_ARGS: $(CMakeArgs)
94
- failOnStderr: true
95
121
displayName: 'Build'
96
122
97
123
- script : |
124
+ set -eo pipefail
98
125
ci/scripts/test.sh
99
126
env:
100
127
SELF_HOST: $(SelfHost)
101
128
BUILD_TYPE: $(BuildType)
102
- failOnStderr: true
103
129
displayName: 'Test'
104
130
105
131
- job :
Original file line number Diff line number Diff line change
1
+ FROM multiarch/ubuntu-core:x86-bionic
2
+
3
+ WORKDIR /src
4
+
5
+ RUN apt update \
6
+ && apt install --no-install-recommends -y ninja-build clang++-9 cmake \
7
+ && apt -y clean
Original file line number Diff line number Diff line change @@ -99,9 +99,11 @@ namespace snmalloc
99
99
(__int64)value,
100
100
(__int64*)&old);
101
101
# else
102
- # if defined(__GNUC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
102
+ # if defined(__GNUC__) && defined(SNMALLOC_VA_BITS_64) && \
103
+ !defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
103
104
#error You must compile with -mcx16 to enable 16-byte atomic compare and swap.
104
105
# endif
106
+
105
107
Linked xchg{value, old.aba + 1 };
106
108
std::atomic<Linked>& addr = parent->linked ;
107
109
You can’t perform that action at this time.
0 commit comments