mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Avoid GNU linker LTO warnings in Github workflows
Stop linker emitting warnings such as lto-wrapper: warning: using serial compilation of n LTRANS jobs Change-Id: Ic933ef7b45955eabfa5b06e88cd195077ff9fc86
This commit is contained in:
@@ -94,7 +94,7 @@ jobs:
|
||||
- name: Setup Environment
|
||||
if: matrix.build_type == 'Release'
|
||||
run: |
|
||||
echo 'CXXFLAGS=-flto' >> $GITHUB_ENV
|
||||
echo 'CXXFLAGS=-flto=auto' >> $GITHUB_ENV
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
|
||||
@@ -111,7 +111,7 @@ jobs:
|
||||
- name: Setup Build Environment
|
||||
if: matrix.build_type == 'Release'
|
||||
run: |
|
||||
echo 'CXXFLAGS=-flto' >> $GITHUB_ENV
|
||||
echo 'CXXFLAGS=-flto=auto' >> $GITHUB_ENV
|
||||
|
||||
- name: Setup Runtime Environment
|
||||
run: |
|
||||
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
- name: Setup Environment
|
||||
if: matrix.build_type == 'Release'
|
||||
run: |
|
||||
echo 'CXXFLAGS=-flto' >> $GITHUB_ENV
|
||||
echo 'CXXFLAGS=-flto=auto' >> $GITHUB_ENV
|
||||
|
||||
- name: Configure (iOS)
|
||||
if: matrix.target == 'ios'
|
||||
|
||||
@@ -42,8 +42,8 @@ jobs:
|
||||
- name: Setup Environment
|
||||
if: ${{matrix.build_type == 'Release'}}
|
||||
run: |
|
||||
echo 'CFLAGS=-flto' >> ~/.bash_profile
|
||||
echo 'CXXFLAGS=-flto' >> ~/.bash_profile
|
||||
echo 'CFLAGS=-flto=auto' >> ~/.bash_profile
|
||||
echo 'CXXFLAGS=-flto=auto' >> ~/.bash_profile
|
||||
|
||||
- name: Cache Build
|
||||
id: cache-build
|
||||
|
||||
Reference in New Issue
Block a user