Some experiments with LTO
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5a98036a7d
commit
e810c8e4a9
6 changed files with 9 additions and 9 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -235,7 +235,7 @@ jobs:
|
|||
WINEDLLOVERRIDES: "mscoree,mshtml="
|
||||
run: |
|
||||
make features
|
||||
make WITH_LTO=true -j $(nproc)
|
||||
make -j $(nproc)
|
||||
- name: Set sha8
|
||||
id: slug
|
||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||
|
@ -269,7 +269,7 @@ jobs:
|
|||
WINEDLLOVERRIDES: "mscoree,mshtml="
|
||||
run: |
|
||||
make features
|
||||
make WITH_LTO=true -j $(nproc)
|
||||
make -j $(nproc)
|
||||
- name: Set sha8
|
||||
id: slug
|
||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||
|
|
2
carla
2
carla
|
@ -1 +1 @@
|
|||
Subproject commit ae96ff6974d2aa879fc29486a09dab33e4d4a53b
|
||||
Subproject commit 7a4b81cf81403fdb2e3fd093274dd568d97d87f5
|
4
deps/Makefile
vendored
4
deps/Makefile
vendored
|
@ -28,8 +28,8 @@ BASE_FLAGS += -I../include/mingw-std-threads
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch
|
||||
endif
|
||||
|
||||
BUILD_C_FLAGS += -fno-finite-math-only
|
||||
|
|
|
@ -552,7 +552,7 @@ BASE_FLAGS += -DNOPLUGINS
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
||||
BUILD_C_FLAGS += -std=gnu11
|
||||
|
|
|
@ -62,7 +62,7 @@ BASE_FLAGS += -DHEADLESS
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
||||
BUILD_C_FLAGS += -std=gnu11
|
||||
|
|
|
@ -155,7 +155,7 @@ BASE_FLAGS += -DHEADLESS
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
||||
BUILD_C_FLAGS += -std=gnu11
|
||||
|
@ -191,7 +191,7 @@ EXTRA_LIBS += $(shell pkg-config --libs jansson libarchive samplerate speexdsp)
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects -fwhole-program -Werror=odr -Werror=lto-type-mismatch
|
||||
endif
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue