aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
Diffstat (limited to '.envrc')
-rw-r--r--.envrc27
1 files changed, 27 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 00000000..5d842f17
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,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' ' ')"