build: Reject C++ compilers in the preprocessor

This commit is contained in:
Tim Ruffing
2022-03-17 22:26:19 +01:00
parent 1cc0941414
commit 3b4f3d0d46
2 changed files with 14 additions and 4 deletions

View File

@@ -312,10 +312,9 @@ task:
name: "C++ -fpermissive"
<< : *LINUX_CONTAINER
env:
# ./configure correctly errors out when given CC=g++.
# We hack around this by passing CC=g++ only to make.
CC: gcc
MAKEFLAGS: -j4 CC=g++ CFLAGS=-fpermissive\ -g
CC: g++
CFLAGS: -fpermissive -g
CPPFLAGS: -DSECP256K1_CPLUSPLUS_TEST_OVERRIDE
WERROR_CFLAGS:
EXPERIMENTAL: yes
ECDH: yes