Skip to content

Commit

Permalink
Disabling -ffat-lto-objects for Clang for now as our Clang CI builds …
Browse files Browse the repository at this point in the history
…are using ancient clang compiler.

Clang added support for this flag recently in contrast to gcc which had
this flag but it switched the behavior.

Signed-off-by: Parth Patel <[email protected]>
  • Loading branch information
parthpatel committed Nov 13, 2024
1 parent b7a0b29 commit d1346c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ ifeq ($(OPTIMIZATION),-O3)
ifeq (clang,$(CLANG))
OPTIMIZATION+=-flto
else
OPTIMIZATION+=-flto=auto
OPTIMIZATION+=-flto=auto -ffat-lto-objects
endif
OPTIMIZATION += -ffat-lto-objects
endif
ifneq ($(OPTIMIZATION),-O0)
OPTIMIZATION+=-fno-omit-frame-pointer
Expand Down

0 comments on commit d1346c8

Please sign in to comment.