Skip to content

Commit

Permalink
pc: build lx_emul and linux driver code with -O2
Browse files Browse the repository at this point in the history
Ref #4416
  • Loading branch information
skalk authored and nfeske committed Feb 21, 2022
1 parent 14d1ca1 commit e1a2b5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repos/pc/lib/import/import-pc_lx_emul.mk
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ CC_C_OPT += -Wno-packed-not-aligned
CC_C_OPT += -Wno-discarded-qualifiers
CC_C_OPT += -Wno-format

# avoid link errors whenever the build config's CC_OLEVEL is set to -O0
override CC_OLEVEL := -O2

LX_SRC = $(shell grep ".*\.c" $(PRG_DIR)/source.list)
SRC_S += $(shell grep ".*\.S" $(PRG_DIR)/source.list)
SRC_C += $(LX_SRC)
Expand Down

0 comments on commit e1a2b5c

Please sign in to comment.