File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,22 @@ import ../config/checks/config : requires ;
1111
1212# These make sure we only build on
1313# compatible C++11 or later toolchains.
14+ obj check_basic_alignas : check/basic_alignas.cpp ;
15+ explicit check_basic_alignas ;
16+
1417constant c11-requires :
1518 [ requires
16- cxx11_alignas
1719 cxx11_constexpr
1820 cxx11_decltype
1921 cxx11_hdr_tuple
2022 cxx11_template_aliases
2123 cxx11_variadic_templates
2224 ]
25+ # We only require limited alignas support,
26+ # so we have to use a custom check
27+ [ check-target-builds
28+ ..//check_basic_alignas cxx11_basic_alignas : : <build>no
29+ ]
2330 ;
2431
2532path-constant LIB_DIR : . ;
Original file line number Diff line number Diff line change 1+ struct some_struct {
2+ double d;
3+ int n;
4+ void * ptr;
5+ };
6+
7+ alignas (16 ) char test1[10 ];
8+ alignas (double ) char test2[10 ];
9+ alignas (some_struct) char test3[10 ];
Original file line number Diff line number Diff line change 2222 LIB = <library>/boost/json//boost_json ;
2323}
2424
25+ project : requirements $(c11-requires) ;
26+
2527# See the comments in CMakeLists.txt for why
2628# these are libraries and not exe targets.
2729lib fuzzerlib_basic_parser :
You can’t perform that action at this time.
0 commit comments