Add busy loop code and make HighResTimer work on demand rather automatically or ifdefed
This commit is contained in:
10
lib/Makefile
10
lib/Makefile
@@ -46,11 +46,7 @@ CCFLAGS_debug += -O0
|
||||
|
||||
CXXFLAGS += -fno-exceptions -fno-rtti
|
||||
|
||||
USE_FUNCTION_SECTIONS ?= true
|
||||
ifeq ($(USE_FUNCTION_SECTIONS),true)
|
||||
CCFLAGS += -ffunction-sections
|
||||
endif
|
||||
CCFLAGS += -mno-gpopt -fomit-frame-pointer
|
||||
CCFLAGS += -mno-gpopt -fomit-frame-pointer -ffunction-sections
|
||||
CCFLAGS += -fno-builtin -fno-strict-aliasing -Wno-attributes
|
||||
CCFLAGS += -std=c++20
|
||||
CCFLAGS += $(ARCHFLAGS)
|
||||
@@ -76,11 +72,11 @@ OBJS = $(addprefix $(OUTPUT_DIR)/,$(addsuffix .o, $(subst ..,!super,$(basename $
|
||||
#Compiling rule
|
||||
$(OUTPUT_DIR)/%.o: %.s
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -c $(DEPS) -o $@ $(CCFLAGS) $(CCFLAGS) $<
|
||||
$(CC) -c $(DEPS) -o $@ $(CCFLAGS) $<
|
||||
|
||||
$(OUTPUT_DIR)/%.o: %.c
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -c $(DEPS) -o $@ $(CCFLAGS) $(CCFLAGS) $<
|
||||
$(CC) -c $(DEPS) -o $@ $(CCFLAGS) $<
|
||||
|
||||
$(OUTPUT_DIR)/%.o: %.cpp
|
||||
@mkdir -p $(dir $@)
|
||||
|
||||
Reference in New Issue
Block a user