From 9f27d4bf32c0465270e1922365b21825a0f7a42a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 25 Feb 2019 11:43:00 +0100 Subject: [PATCH] Do buildtests on our public header files with C++ as well This ensures that we don't mistakenly use C++ keywords anywhere public. Related to #8313 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/8325) --- test/build.info | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/build.info b/test/build.info index db4e1a7b35..1a474634c5 100644 --- a/test/build.info +++ b/test/build.info @@ -593,11 +593,19 @@ ENDIF next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re; $OUT .= <<"_____"; - PROGRAMS{noinst}=buildtest_$name + PROGRAMS{noinst}=buildtest_c_$name + SOURCE[buildtest_c_$name]=buildtest_$name.c GENERATE[buildtest_$name.c]=generate_buildtest.pl $name - SOURCE[buildtest_$name]=buildtest_$name.c - INCLUDE[buildtest_$name]=../include - DEPEND[buildtest_$name]=../libssl ../libcrypto + INCLUDE[buildtest_c_$name]=../include + DEPEND[buildtest_c_$name]=../libssl ../libcrypto +_____ + $OUT .= <<"_____" if $config{CXX}; + + PROGRAMS{noinst}=buildtest_cc_$name + SOURCE[buildtest_cc_$name]=buildtest_$name.cc + GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name + INCLUDE[buildtest_cc_$name]=../include + DEPEND[buildtest_cc_$name]=../libssl ../libcrypto _____ } -} -- 2.25.1