Skip to content

Commit

Permalink
Test builds with LTO enabled
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Mar 16, 2022
1 parent 0bd8447 commit 9758218
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: make features
run: make features
- name: make
run: make -j $(sysctl -n hw.logicalcpu)
run: make WITH_LTO=true -j $(sysctl -n hw.logicalcpu)

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

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

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

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

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

ubuntu-mingw-win64:
runs-on: ubuntu-20.04
Expand All @@ -150,4 +150,4 @@ jobs:
- name: make features
run: make features
- name: make
run: make -j $(nproc)
run: make WITH_LTO=true -j $(nproc)
1 change: 1 addition & 0 deletions source/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ endif

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

32BIT_FLAGS = -m32
Expand Down
2 changes: 2 additions & 0 deletions source/utils/CarlaLv2Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Lilv::Port lilvPort(lilvPlugin.get_port_by_index(i));
CARLA_SAFE_ASSERT_CONTINUE(lilvPort.me != nullptr);

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

// --------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 9758218

Please sign in to comment.