Skip to content

Commit 2bdd7f1

Browse files
committed
Try to repair CI
1 parent e1274d2 commit 2bdd7f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/cmath/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ ifeq ($(STD),c++20)
2424
WARNFLAGS+=-Wno-volatile
2525
endif
2626

27-
CXXFLAGS=-std=$(STD) -O2 $(WARNFLAGS) -fno-exceptions -fno-rtti -fno-unwind-tables -fno-threadsafe-statics -Wshadow -Wcast-qual -Wpointer-arith -Wundef
28-
LDFLAGS=-lm
27+
CXXFLAGS=-std=$(STD) -O2 $(WARNFLAGS) -mdouble=64 -mlong-double=64 -fno-exceptions -fno-rtti -fno-unwind-tables -fno-threadsafe-statics -Wshadow -Wcast-qual -Wpointer-arith -Wundef
28+
LDFLAGS=-x none $(CXXFLAGS) -lm
2929

3030
TARGET=$(BUILD_DIR)/$(NAME)
3131

@@ -41,11 +41,11 @@ $(TARGET).elf: $(OBJECTS)
4141

4242
$(BUILD_DIR)/%.cpp.o: %.cpp
4343
@mkdir -p $(BUILD_DIR)
44-
avr-g++ -c $(CXXFLAGS) -mmcu=$(MCU) -mdouble=64 -mlong-double=64 $(INCLUDES) $< -o $@
44+
avr-g++ -c $(CXXFLAGS) -mmcu=$(MCU) $(INCLUDES) $< -o $@
4545

4646
$(BUILD_DIR)/%.cc.o: %.cc
4747
@mkdir -p $(BUILD_DIR)
48-
avr-g++ -c $(CXXFLAGS) -mmcu=$(MCU) -mdouble=64 -mlong-double=64 $(INCLUDES) $< -o $@
48+
avr-g++ -c $(CXXFLAGS) -mmcu=$(MCU) $(INCLUDES) $< -o $@
4949

5050
size: $(TARGET).elf
5151
avr-objdump -Pmem-usage $(TARGET).elf

0 commit comments

Comments
 (0)