summaryrefslogtreecommitdiffstats
path: root/test/build.info
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-02-25 11:43:00 +0100
committerRichard Levitte <levitte@openssl.org>2019-02-28 13:08:04 +0100
commited8a604958484e19408775fa20aa973638875330 (patch)
treeccb080d7db63d130a99b855e0343959c09fc4972 /test/build.info
parentcd7dc67c4460947b6139cd08bc23a84e3d8bb429 (diff)
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 (cherry picked from commit 9f27d4bf32c0465270e1922365b21825a0f7a42a) Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8359)
Diffstat (limited to 'test/build.info')
-rw-r--r--test/build.info16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/build.info b/test/build.info
index 52d4ee7d3b..22a7d199a5 100644
--- a/test/build.info
+++ b/test/build.info
@@ -579,11 +579,19 @@ ENDIF
next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
$OUT .= <<"_____";
- PROGRAMS_NO_INST=buildtest_$name
+ PROGRAMS_NO_INST=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_NO_INST=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
_____
}
-}