Add -Ox compilation level for test objects.

This commit is contained in:
John McNamara 2021-04-11 12:39:50 +01:00
parent c718466194
commit 2354d27646

View File

@ -165,7 +165,7 @@ test_compile : $(OBJS)
$(Q)$(CC) $(FPIC) -I$(INC_DIR) $(LDFLAGS) $(CFLAGS) $(CXXFLAGS) $(TARGET_ARCH) -c $< -o $@
%.to : %.c $(HDRS)
$(Q)$(CC) -g -O3 -DTESTING -I$(INC_DIR) $(CFLAGS) $(CXXFLAGS) -c $< -o $@
$(Q)$(CC) -g $(OPT_LEVEL) -DTESTING -I$(INC_DIR) $(CFLAGS) $(CXXFLAGS) -c $< -o $@
# Clean up any temp/build files.