@@ -92,7 +92,7 @@ def format_b2_args(**kwargs):
92
92
return res
93
93
94
94
95
- def linux_build_steps (image , ** kwargs ):
95
+ def linux_build_steps (image , privileged , ** kwargs ):
96
96
args = format_b2_args (** kwargs )
97
97
return [
98
98
{
@@ -114,7 +114,9 @@ def linux_build_steps(image, **kwargs):
114
114
{
115
115
"name" : "test" ,
116
116
"image" : image ,
117
+ "privileged" : privileged ,
117
118
"commands" : [
119
+ "echo 0 | sudo tee /proc/sys/kernel/randomize_va_space" if privileged else "echo" ,
118
120
"cd boost/libs/cobalt" ,
119
121
"../../b2 test -j8 " + args
120
122
]
@@ -156,6 +158,7 @@ def linux(
156
158
name ,
157
159
branch ,
158
160
image ,
161
+ privileged = False ,
159
162
** kwargs ):
160
163
161
164
return {
@@ -167,7 +170,7 @@ def linux(
167
170
"os" : "linux" ,
168
171
"arch" : "amd64"
169
172
},
170
- "steps" : git_boost_steps (branch ) + linux_build_steps (image , ** kwargs )
173
+ "steps" : git_boost_steps (branch ) + linux_build_steps (image , privileged , ** kwargs )
171
174
}
172
175
173
176
@@ -196,21 +199,21 @@ def main(ctx):
196
199
branch = 'develop'
197
200
198
201
return [
199
- linux ("gcc-11" , branch , "docker.io/library/gcc:11" , variant = "release" , cxxstd = "20" ),
200
- linux ("gcc-12" , branch , "docker.io/library/gcc:12.3" , variant = "release" , cxxstd = "20" ),
201
- linux ("gcc-13" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" ),
202
- linux ("gcc-13 (asan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , address_sanitizer = "on" ),
203
- linux ("gcc-13 (usan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , undefined_sanitizer = "on" ),
204
- linux ("gcc-13 (tsan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , thread_sanitizer = "on" ),
205
- linux ("gcc-13 (io_context)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.executor' : 'use_io_context' }),
206
- linux ("gcc-13 (container.pmr)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'boost-container' }),
207
- linux ("gcc-13 (no pmr)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'no' }),
208
- linux ("clang" , branch , "docker.io/silkeh/clang" , toolset = 'clang' , variant = "release" , cxxstd = "20" ),
209
- linux ("clang (container.pmr)" , branch , "docker.io/silkeh/clang" , toolset = 'clang' , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'boost-container' }),
210
- linux ("clang (no pmr)" , branch , "docker.io/silkeh/clang" , toolset = 'clang' , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'no' }),
211
- linux ("clang (asan)" , branch , "docker.io/silkeh/clang " , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , address_sanitizer = "on" ),
212
- linux ("clang (usan)" , branch , "docker.io/silkeh/clang " , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , undefined_sanitizer = "on" ),
213
- linux ("clang (tsan)" , branch , "docker.io/silkeh/clang" , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , thread_sanitizer = "on" ),
202
+ linux ("gcc-11" , branch , "docker.io/library/gcc:11" , variant = "release" , cxxstd = "20" ),
203
+ linux ("gcc-12" , branch , "docker.io/library/gcc:12.3" , variant = "release" , cxxstd = "20" ),
204
+ linux ("gcc-13" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" ),
205
+ linux ("gcc-13 (asan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , address_sanitizer = "on" ),
206
+ linux ("gcc-13 (usan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , undefined_sanitizer = "on" ),
207
+ linux ("gcc-13 (tsan)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , debug_symbols = "on" , thread_sanitizer = "on" ),
208
+ linux ("gcc-13 (io_context)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.executor' : 'use_io_context' }),
209
+ linux ("gcc-13 (container.pmr)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'boost-container' }),
210
+ linux ("gcc-13 (no pmr)" , branch , "docker.io/library/gcc:13" , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'no' }),
211
+ linux ("clang" , branch , "cppalliance/droneubuntu2404:1" , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" ),
212
+ linux ("clang (container.pmr)" , branch , "cppalliance/droneubuntu2404:1" , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'boost-container' }),
213
+ linux ("clang (no pmr)" , branch , "cppalliance/droneubuntu2404:1" , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" , ** {'boost.cobalt.pmr' : 'no' }),
214
+ linux ("clang (asan)" , branch , "cppalliance/droneubuntu2404:1 " , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , address_sanitizer = "on" ),
215
+ linux ("clang (usan)" , branch , "cppalliance/droneubuntu2404:1 " , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , undefined_sanitizer = "on" ),
216
+ linux ("clang (tsan)" , branch , "cppalliance/droneubuntu2404:1" , privileged = True , toolset = 'clang' , variant = "release" , cxxstd = "20" , debug_symbols = "on" , thread_sanitizer = "on" ),
214
217
windows ("msvc-14.3 (x64)" , branch , "cppalliance/dronevs2022:latest" , variant = "release" , cxxstd = "20" , address_model = "64" ),
215
218
windows ("msvc-14.3 (x32)" , branch , "cppalliance/dronevs2022:latest" , variant = "release" , cxxstd = "20" , address_model = "32" )
216
219
]
0 commit comments