File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -312,10 +312,9 @@ task:
312
312
name : " C++ -fpermissive"
313
313
<< : *LINUX_CONTAINER
314
314
env :
315
- # ./configure correctly errors out when given CC=g++.
316
- # We hack around this by passing CC=g++ only to make.
317
- CC : gcc
318
- MAKEFLAGS : -j4 CC=g++ CFLAGS=-fpermissive\ -g
315
+ CC : g++
316
+ CFLAGS : -fpermissive -g
317
+ CPPFLAGS : -DSECP256K1_CPLUSPLUS_TEST_OVERRIDE
319
318
WERROR_CFLAGS :
320
319
EXPERIMENTAL : yes
321
320
ECDH : yes
Original file line number Diff line number Diff line change 4
4
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
5
5
***********************************************************************/
6
6
7
+ /* This is a C project. It should not be compiled with a C++ compiler,
8
+ * and we error out if we detect one.
9
+ *
10
+ * We still want to be able to test the project with a C++ compiler
11
+ * because it is still good to know if this will lead to real trouble, so
12
+ * there is a possibility to override the check. But be warned that
13
+ * compiling with a C++ compiler is not supported. */
14
+ #if defined(__cplusplus ) && !defined(SECP256K1_CPLUSPLUS_TEST_OVERRIDE )
15
+ #error Trying to compile a C project with a C++ compiler.
16
+ #endif
17
+
7
18
#define SECP256K1_BUILD
8
19
9
20
#include "../include/secp256k1.h"
You can’t perform that action at this time.
0 commit comments