Skip to content

Commit

Permalink
Build tweaks for TS80P 😢
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Apr 2, 2022
1 parent 867c6fb commit 9689c05
Show file tree
Hide file tree
Showing 2 changed files with 2,064 additions and 2,572 deletions.
6 changes: 2 additions & 4 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ $(shell find $(DEVICE_BSP_DIR) -type f -name '*.cpp') \
$(shell find $(SOURCE_MIDDLEWARES_DIR) -type f -name '*.cpp')

# code optimisation ------------------------------------------------------------
OPTIM=-Os -flto -finline-small-functions -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections -fshort-enums -fsingle-precision-constant -ffreestanding -fno-common
OPTIM=-Os -flto -finline-small-functions -fshort-wchar -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections -fshort-enums -fsingle-precision-constant -fno-common

# global defines ---------------------------------------------------------------
GLOBAL_DEFINES += $(DEV_GLOBAL_DEFS) -D USE_RTOS_SYSTICK -D MODEL_$(model) -D VECT_TAB_OFFSET=$(bootldr_size)U
Expand Down Expand Up @@ -293,8 +293,6 @@ CXXFLAGS=$(DEV_CXXFLAGS) \
-fno-non-call-exceptions \
-fno-use-cxa-atexit \
-fno-strict-aliasing \
-fno-rtti \
-fno-exceptions \
-fno-threadsafe-statics \
-T$(LDSCRIPT)

Expand All @@ -307,7 +305,7 @@ CFLAGS=$(DEV_CFLAGS) \
$(GLOBAL_DEFINES) \
-D${COMPILER} \
-MMD \
-std=gnu99 \
-std=gnu11 \
$(OPTIM) \
-T$(LDSCRIPT) \
-c
Expand Down
Loading

0 comments on commit 9689c05

Please sign in to comment.