Browse Source

Build with LTO

Signed-off-by: falkTX <falktx@falktx.com>
pull/26/head
falkTX 3 years ago
parent
commit
b22a46cfb0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 2 deletions
  1. +1
    -2
      .github/workflows/bootstrap.yml
  2. +2
    -0
      bootstrap-carla.sh

+ 1
- 2
.github/workflows/bootstrap.yml View File

@@ -8,10 +8,9 @@ on:
branches:
- '*'
env:
CACHE_VERSION: 8
CACHE_VERSION: 9
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1
PAWPAW_SKIP_LTO: 1

jobs:
common:


+ 2
- 0
bootstrap-carla.sh View File

@@ -50,9 +50,11 @@ function build_conf_python() {
export CFLAGS="$(echo ${CFLAGS} | sed -e 's/-fvisibility=hidden//')"
export CFLAGS="$(echo ${CFLAGS} | sed -e 's/-ffast-math//')"
export CFLAGS="$(echo ${CFLAGS} | sed -e 's/-fdata-sections -ffunction-sections//')"
export CFLAGS="$(echo ${CFLAGS} | sed -e 's/-fno-strict-aliasing -flto//')"
export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-dead_strip -Wl,-dead_strip_dylibs//')"
export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,--strip-all//')"
export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-fdata-sections -ffunction-sections//')"
export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-fno-strict-aliasing -flto//')"

if [ ! -f "${pkgdir}/.stamp_preconfigured" ] && [ "${WIN32}" -eq 1 ]; then
pushd "${pkgdir}"


Loading…
Cancel
Save