aboutsummaryrefslogtreecommitdiff
path: root/.envrc
blob: 5d842f17e2dc82d5fb38fc96b010b73c63374f92 (plain) (blame)
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
#!/bin/sh

export CFLAGS='
	-D_POSIX_C_SOURCE=200809L
	-D_XOPEN_SOURCE=700
	-Iarch/x86_64
	-Iarch/generic
	-Isrc/include
	-Isrc/internal
	-Iinclude
	-std=c99
	-fsanitize=undefined
	-fsanitize-trap
	-ffreestanding
	-Wall
	-Wextra
	-Wfatal-errors
	-Wconversion
	-Wvla
	-Wshadow
	-Wfloat-equal
	-Wundef
	-Wdouble-promotion
'
	# -Wpedantic
	# -Werror
CFLAGS="$(echo "$CFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"