aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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