-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
41 lines (39 loc) · 1.99 KB
/
config.h
File metadata and controls
41 lines (39 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// aven cfmt columns: 100
// config.h can be used to define custom defaults for flags
// A nice strict set of debug flags for clang and gcc
#if !defined(_WIN32) && defined(__GNUC__)
#ifndef AVEN_BUILD_COMMON_DEFAULT_CCFLAGS
#define AVEN_BUILD_COMMON_DEFAULT_CCFLAGS \
"-std=c11 -pedantic -fstrict-aliasing -O0 -g3 -Werror -Wall -Wextra " \
"-Wshadow -Wconversion -Wdouble-promotion -Winit-self " \
"-Wcast-align -Wstrict-prototypes -Wold-style-definition " \
"-fsanitize-trap -fsanitize=unreachable -fsanitize=undefined " \
"-fsanitize=address"
#endif
#ifndef LIBAVENGL_DEFAULT_GLFW_CCFLAGS
#define LIBAVENGL_DEFAULT_GLFW_CCFLAGS \
"-std=c11 -fstrict-aliasing -O0 -g3 -Werror -Wall -Wextra " \
"-Wstrict-prototypes -Wold-style-definition -Winit-self " \
"-Wno-unused-parameter -Wno-sign-compare -Wno-overflow " \
"-Wno-missing-field-initializers " \
"-fsanitize-trap -fsanitize=unreachable -fsanitize=undefined"
#endif
#ifndef LIBAVENGL_DEFAULT_STB_CCFLAGS
#define LIBAVENGL_DEFAULT_STB_CCFLAGS \
"-std=c11 -pedantic -fstrict-aliasing -O0 -g3 -Werror -Wall -Wextra " \
"-Wstrict-prototypes -Wold-style-definition -Winit-self " \
"-Wno-unused-parameter -Wno-unused-function -Wno-sign-compare " \
"-Wno-missing-field-initializers " \
"-fsanitize-trap -fsanitize=unreachable -fsanitize=undefined"
#endif
#ifndef AVEN_BUILD_COMMON_DEFAULT_LDFLAGS
#define AVEN_BUILD_COMMON_DEFAULT_LDFLAGS "-g3 -fsanitize=address"
#endif
#endif
/*
** // Thread sanitizer flags for clang/gcc
** define AVEN_BUILD_COMMON_DEFAULT_LDFLAGS \
** "-fsanitize=thread -lpthread"
** define AVEN_BUILD_COMMON_DEFAULT_CCFLAGS \
** "-fsanitize=thread -DAVEN_THREAD_USE_PTHREADS -DBENCHMARK_THREADED"
**/