set compiler std and make optimization level

This commit is contained in:
Joseph Poirier 2015-06-07 22:15:32 -05:00
parent 9addfe1788
commit 0e58d1a23d
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
CC=gcc CC=gcc
CFLAGS=-Wall -std=gnu11 -pedantic -DUNIX_HOST -DVER=\"`git show-ref --abbrev=8 --head --hash head`\" -DTAG=\"`git describe --abbrev=0 --tags`\"
# -O3
# -std=gnu11
CFLAGS=-Wall -O3 -std=gnu11 -pedantic -DUNIX_HOST -DVER=\"`git show-ref --abbrev=8 --head --hash head`\" -DTAG=\"`git describe --abbrev=0 --tags`\"
LIBS=-lm -lreadline LIBS=-lm -lreadline
TARGET = picoc TARGET = picoc

View file

@ -1,6 +1,6 @@
/* stdlib.h library */ /* stdlib.h library */
// #include <stdio.h> /*#include <stdio.h>*/
// #include <unistd.h> /*#include <unistd.h>*/
#include <limits.h> #include <limits.h>
#include <fcntl.h> #include <fcntl.h>
#include "../interpreter.h" #include "../interpreter.h"