config.h tests

This commit is contained in:
Venelin
2024-04-26 18:50:25 +03:00
parent 6dbe37e07b
commit a8fb5f7d3d
12 changed files with 118 additions and 42 deletions
+25
View File
@@ -0,0 +1,25 @@
// C compiler
const char* CC = "gcc";
// C++ compiler
const char* CXX = "g++";
// You can read about gcc options by running "man gcc"
// Compiler options to use...
// ...when debugging
#define DEBUG_FLAGS "-g"
// ...when not debugging
#define RELEASE_FLAGS "-Ofast", "-flto", "-s"
// ...for both C and C++
#define CPPFLAGS "-pipe", "-march=native", "-Wall", "-Wextra"
// ...for C
#define CFLAGS CPPFLAGS
// ...for C++
// cppipe command functions use C++17
// Wparentheses is disabled on C++ because of the cppipe functions
#define CXXFLAGS CPPFLAGS, "-std=c++17", "-Wno-parentheses", "-lcppipe"