set compiler std and make optimization level
This commit is contained in:
parent
9addfe1788
commit
0e58d1a23d
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue