Compiler options for GCC, clang and tcc

This commit is contained in:
Petteri Aimonen
2013-09-10 20:54:29 +03:00
parent 696a01bf14
commit 0bbcb7b367
2 changed files with 65 additions and 9 deletions

View File

@@ -9,6 +9,9 @@ env.NanopbProto("unittestproto")
env.NanopbProto("person")
# Binaries of the pb_decode.c and pb_encode.c
env.Object("pb_decode.o", "#../pb_decode.c")
env.Object("pb_encode.o", "#../pb_encode.c")
# These are built using more strict warning flags.
strict = env.Clone()
strict.Append(CFLAGS = strict['CORECFLAGS'])
strict.Object("pb_decode.o", "#../pb_decode.c")
strict.Object("pb_encode.o", "#../pb_encode.c")