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": [
|
"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",
|
"name": "at91sam3x8e",
|
||||||
"defines": [
|
"defines": [
|
||||||
|
@ -59,6 +17,9 @@
|
||||||
"compilerArgs": [
|
"compilerArgs": [
|
||||||
"-mcpu=cortex-m3",
|
"-mcpu=cortex-m3",
|
||||||
"-mthumb",
|
"-mthumb",
|
||||||
|
"-mabi=aapcs",
|
||||||
|
"-march=armv7-m",
|
||||||
|
"-masm-syntax-unified",
|
||||||
"-nodefaultlibs",
|
"-nodefaultlibs",
|
||||||
"-nostartfiles",
|
"-nostartfiles",
|
||||||
"-fno-builtin",
|
"-fno-builtin",
|
||||||
|
@ -69,7 +30,6 @@
|
||||||
"-Wbad-function-cast",
|
"-Wbad-function-cast",
|
||||||
"-Wshadow",
|
"-Wshadow",
|
||||||
"-Wsign-compare",
|
"-Wsign-compare",
|
||||||
"-Wfloat-equal",
|
|
||||||
"-Wunreachable-code",
|
"-Wunreachable-code",
|
||||||
"-Wwrite-strings",
|
"-Wwrite-strings",
|
||||||
"-Wconversion",
|
"-Wconversion",
|
||||||
|
|
13
Makefile
13
Makefile
|
@ -49,14 +49,19 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -Wall \
|
CFLAGS += -Wall \
|
||||||
|
-Wno-sign-conversion \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-Wredundant-decls \
|
-Wredundant-decls \
|
||||||
-Wnested-externs -Wbad-function-cast \
|
-Wnested-externs \
|
||||||
|
-Wbad-function-cast \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wsign-compare -Wfloat-equal \
|
-Wsign-compare \
|
||||||
-Wunreachable-code \
|
-Wunreachable-code \
|
||||||
-Wwrite-strings -Wconversion \
|
-Wwrite-strings \
|
||||||
-Waggregate-return -Winline -Wcast-align
|
-Wconversion \
|
||||||
|
-Waggregate-return \
|
||||||
|
-Winline \
|
||||||
|
-Wcast-align
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
CFLAGS += -DDEBUG
|
CFLAGS += -DDEBUG
|
||||||
|
|
Loading…
Reference in a new issue