Skip to content

Commit 21780f6

Browse files
committed
Adds back GCC 4.8 support
1 parent a160c55 commit 21780f6

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Jamfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1417
constant 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

2532
path-constant LIB_DIR : . ;

check/basic_alignas.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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];

fuzzing/Jamfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ else
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.
2729
lib fuzzerlib_basic_parser :

0 commit comments

Comments
 (0)