From 0e58d1a23d2b09dc768240f4686e18e9f5a92ac8 Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Sun, 7 Jun 2015 22:15:32 -0500 Subject: [PATCH] set compiler std and make optimization level --- Makefile | 5 ++++- cstdlib/unistd.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 35f7e7b..d2f0573 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ 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 TARGET = picoc diff --git a/cstdlib/unistd.c b/cstdlib/unistd.c index e22543a..9f8d9c9 100644 --- a/cstdlib/unistd.c +++ b/cstdlib/unistd.c @@ -1,6 +1,6 @@ /* stdlib.h library */ -// #include -// #include +/*#include */ +/*#include */ #include #include #include "../interpreter.h"