Browse Source

Relax math precision and let GCC be more agressive

Use -ffast-math for building C/C++. We don't need to be exact, let GCC
be more agressive and saves few bytes (currently it saves 80bytes).
master
Marc Poulhiès 3 years ago
parent
commit
fcaeaa4ace
  1. 4
      arduino/Makefile

4
arduino/Makefile

@ -21,4 +21,8 @@ ARDUINO_DIR ?= $(HOME)/arduino/arduino-1.8.5
USER_LIB_PATH := $(PWD)
# We don't need exact math. Let gcc be a bit more agressive.
CFLAGS += -ffast-math
CXXFLAGS += -ffast-math
include $(ARDMK_DIR)/Arduino.mk
Loading…
Cancel
Save