Browse Source

Test builds with LTO enabled

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.3
falkTX 2 years ago
parent
commit
9758218192
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 12 additions and 9 deletions
  1. +9
    -9
      .github/workflows/build.yml
  2. +1
    -0
      source/Makefile.mk
  3. +2
    -0
      source/utils/CarlaLv2Utils.hpp

+ 9
- 9
.github/workflows/build.yml View File

@@ -22,7 +22,7 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(sysctl -n hw.logicalcpu)
run: make WITH_LTO=true -j $(sysctl -n hw.logicalcpu)


msys2-i686: msys2-i686:
runs-on: windows-latest runs-on: windows-latest
@@ -38,7 +38,7 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)


msys2-x86_64: msys2-x86_64:
runs-on: windows-latest runs-on: windows-latest
@@ -54,7 +54,7 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)


ubuntu-18_04: ubuntu-18_04:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
@@ -73,9 +73,9 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)
- name: make posix32 - name: make posix32
run: make posix32 -j $(nproc)
run: make WITH_LTO=true posix32 -j $(nproc)


ubuntu-20_04: ubuntu-20_04:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@@ -99,9 +99,9 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)
- name: make posix32 - name: make posix32
run: make posix32 -j $(nproc)
run: make WITH_LTO=true posix32 -j $(nproc)


ubuntu-mingw-win32: ubuntu-mingw-win32:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@@ -126,7 +126,7 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)


ubuntu-mingw-win64: ubuntu-mingw-win64:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@@ -150,4 +150,4 @@ jobs:
- name: make features - name: make features
run: make features run: make features
- name: make - name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)

+ 1
- 0
source/Makefile.mk View File

@@ -92,6 +92,7 @@ endif


ifeq ($(WITH_LTO),true) ifeq ($(WITH_LTO),true)
BASE_FLAGS += -fno-strict-aliasing -flto BASE_FLAGS += -fno-strict-aliasing -flto
LINK_OPTS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
endif endif


32BIT_FLAGS = -m32 32BIT_FLAGS = -m32


+ 2
- 0
source/utils/CarlaLv2Utils.hpp View File

@@ -1861,6 +1861,8 @@ const LV2_RDF_Descriptor* lv2_rdf_new(const LV2_URI uri, const bool loadPresets)
for (uint i = 0; i < numPorts; ++i) for (uint i = 0; i < numPorts; ++i)
{ {
Lilv::Port lilvPort(lilvPlugin.get_port_by_index(i)); Lilv::Port lilvPort(lilvPlugin.get_port_by_index(i));
CARLA_SAFE_ASSERT_CONTINUE(lilvPort.me != nullptr);

LV2_RDF_Port* const rdfPort(&rdfDescriptor->Ports[i]); LV2_RDF_Port* const rdfPort(&rdfDescriptor->Ports[i]);


// -------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save