From cda6f4f87736a4a4dc3205fc70497633666ae4c6 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 15 Jun 2021 15:03:27 +0200 Subject: [PATCH] chore(ci): enable {build,link}-time optimizations --- .drone.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.drone.yml b/.drone.yml index 64aa4e4c..dceb1935 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,6 +75,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" - cd src @@ -102,6 +104,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" - cd src @@ -120,6 +124,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" - cd src @@ -158,6 +164,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - ld --version - gcc --version @@ -187,6 +195,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" - cd src @@ -205,6 +215,8 @@ steps: volumes: - name: usrcache path: /usr + environment: + CMAKE_CXX_FLAGS: "-lpthread -O3 -march=native -flto -fPIE" commands: - export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" - cd src