aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2019-03-26 23:25:52 +0100
committerJ08nY2019-04-03 15:22:15 +0200
commit9c26b5a5081913493cfa4b5d2010ad17be7f3c1a (patch)
treed7384eca842a4dd4dd25b809c70d5a5a18b46bb3
parentc3b27105b89b03fca8f203b308eefa8ccc2be00c (diff)
downloadecgen-9c26b5a5081913493cfa4b5d2010ad17be7f3c1a.tar.gz
ecgen-9c26b5a5081913493cfa4b5d2010ad17be7f3c1a.tar.zst
ecgen-9c26b5a5081913493cfa4b5d2010ad17be7f3c1a.zip
-rw-r--r--.travis.yml8
-rw-r--r--src/Makefile4
2 files changed, 7 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 6fe298a..4b9daf8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,14 +10,16 @@ matrix:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- - compiler: clang-6.0
+ - compiler: clang-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- - llvm-toolchain-trusty-6.0
+ - llvm-toolchain-trusty-7
packages:
- - clang-6.0
+ - clang-7
+ - llvm-7-dev
+ - lld-7
before_install:
- sudo apt-get update
diff --git a/src/Makefile b/src/Makefile
index e9a003d..6641022 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,7 +7,7 @@
CC ?= gcc
-CFLAGS = -Wall -flto
+CFLAGS = -Wall
DEBUG ?= 0
TEST ?= 0
FAST ?= 0
@@ -19,7 +19,7 @@ else ifeq ($(TEST), 1)
CFLAGS += -DNDEBUG --coverage -g -O0
else ifeq ($(FAST), 1)
ifeq ($(CC), gcc)
- CFLAGS += -DNDEBUG -O3 -march=native -mtune=native -pipe
+ CFLAGS += -DNDEBUG -O3 -march=native -mtune=native -pipe -flto
else
CFLAGS += -DNDEBUG -O3
endif