build: make gcc less annoying
This is so gonna break my legs in two months but whatever
This commit is contained in:
parent
ec3b64d232
commit
c59bd3f7c6
2 changed files with 12 additions and 47 deletions
46
.vscode/c_cpp_properties.json
vendored
46
.vscode/c_cpp_properties.json
vendored
|
@ -1,47 +1,5 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "atmega328p",
|
||||
"defines": [
|
||||
"DEBUG",
|
||||
"ARCH=atmega328p",
|
||||
"ARCH_ATMEGA328P"
|
||||
],
|
||||
"compilerPath": "/usr/bin/avr-gcc",
|
||||
"cStandard": "gnu11",
|
||||
"intelliSenseMode": "gcc-x86",
|
||||
"includePath": [
|
||||
"include"
|
||||
],
|
||||
"compilerArgs": [
|
||||
"-mmcu=atmega328p",
|
||||
"-nostdlib",
|
||||
"-nodefaultlibs",
|
||||
"-fno-builtin",
|
||||
"-fpack-struct",
|
||||
"-Wall",
|
||||
"-Wstrict-prototypes",
|
||||
"-Wredundant-decls",
|
||||
"-Wnested-externs",
|
||||
"-Wbad-function-cast",
|
||||
"-Wshadow",
|
||||
"-Wsign-compare",
|
||||
"-Wfloat-equal",
|
||||
"-Wunreachable-code",
|
||||
"-Wwrite-strings",
|
||||
"-Wconversion",
|
||||
"-Waggregate-return",
|
||||
"-Winline",
|
||||
"-Wcast-align"
|
||||
],
|
||||
"browse": {
|
||||
"path": [
|
||||
"include",
|
||||
"${workspaceFolder}"
|
||||
],
|
||||
"limitSymbolsToIncludedHeaders": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "at91sam3x8e",
|
||||
"defines": [
|
||||
|
@ -59,6 +17,9 @@
|
|||
"compilerArgs": [
|
||||
"-mcpu=cortex-m3",
|
||||
"-mthumb",
|
||||
"-mabi=aapcs",
|
||||
"-march=armv7-m",
|
||||
"-masm-syntax-unified",
|
||||
"-nodefaultlibs",
|
||||
"-nostartfiles",
|
||||
"-fno-builtin",
|
||||
|
@ -69,7 +30,6 @@
|
|||
"-Wbad-function-cast",
|
||||
"-Wshadow",
|
||||
"-Wsign-compare",
|
||||
"-Wfloat-equal",
|
||||
"-Wunreachable-code",
|
||||
"-Wwrite-strings",
|
||||
"-Wconversion",
|
||||
|
|
13
Makefile
13
Makefile
|
@ -49,14 +49,19 @@ else
|
|||
endif
|
||||
|
||||
CFLAGS += -Wall \
|
||||
-Wno-sign-conversion \
|
||||
-Wstrict-prototypes \
|
||||
-Wredundant-decls \
|
||||
-Wnested-externs -Wbad-function-cast \
|
||||
-Wnested-externs \
|
||||
-Wbad-function-cast \
|
||||
-Wshadow \
|
||||
-Wsign-compare -Wfloat-equal \
|
||||
-Wsign-compare \
|
||||
-Wunreachable-code \
|
||||
-Wwrite-strings -Wconversion \
|
||||
-Waggregate-return -Winline -Wcast-align
|
||||
-Wwrite-strings \
|
||||
-Wconversion \
|
||||
-Waggregate-return \
|
||||
-Winline \
|
||||
-Wcast-align
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS += -DDEBUG
|
||||
|
|
Loading…
Reference in a new issue