From 0923c42b1bfcd78c054107457c6ab02235bd106c Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Mon, 19 Jun 2017 22:58:41 +0200
Subject: [PATCH] configure USE_LTO for clang on gitlab-ci

---
 .gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 517702e9cc..1f30d7e91d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,6 +19,11 @@ before_script:
       *-clang) ln -s /usr/lib/llvm4/lib/LLVMgold.so /usr/lib/LLVMgold.so;;
       *) ;;
     esac
+  - echo USE_RAMDISK=0 >> build.conf
+  - case "$CI_BUILD_NAME" in
+      *-clang) echo USE_LTO=1 >> build.conf;;
+      *) echo USE_LTO=0 >> build.conf;;
+    esac
 
 
 #==========  Stage build  ==========
-- 
GitLab