Skip to content

Commit cbaa2c1

Browse files
committed
update docs ,add better trim util in preprocessor, and add wrapper in makefile for quick pre_commit test
1 parent a5352fd commit cbaa2c1

File tree

4 files changed

+64
-541
lines changed

4 files changed

+64
-541
lines changed

ODIN_II/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ else
1212
CMAKE_GEN_ARGS := -G'Unix Makefiles'
1313
endif
1414

15+
CMAKE_ARGS := -DVPR_IPO_BUILD=off
16+
1517
#Default build type
1618
# Possible values:
1719
# release
@@ -21,29 +23,33 @@ MAKEFLAGS := -s
2123

2224
BUILD_DIR=../build
2325

24-
.PHONY: help build debug
26+
.PHONY: help build debug test
2527

2628
help:
2729
@echo -e "\n\
2830
The Following three options are available\n\n\
2931
build build using the VTR_ROOT makefile \n\
3032
debug build using the VTR_ROOT makefile with debug flags and extra warning flags for ODIN only\n\
3133
clean remove the build file for ODIN only\n\
34+
test run the complete battery of test before commiting changes or to assert functionnalityn\
3235
"
3336

3437
init:
3538
mkdir -p $(BUILD_DIR)
3639

3740
build: clean init
3841
cd $(BUILD_DIR);\
39-
cmake $(CMAKE_GEN_ARGS) .. &&\
42+
cmake $(CMAKE_GEN_ARGS) $(CMAKE_ARGS) .. &&\
4043
$(BUILDER)
4144

4245
debug: clean init
4346
cd $(BUILD_DIR);\
44-
cmake $(CMAKE_GEN_ARGS) -DODIN_DEBUG=on .. &&\
47+
cmake $(CMAKE_GEN_ARGS) $(CMAKE_ARGS) -DODIN_DEBUG=on .. &&\
4548
$(BUILDER)
4649

4750
clean:
4851
$(RM) -Rf $(BUILD_DIR)/CMakeCache.txt
4952
$(RM) -Rf $(BUILD_DIR)/ODIN_II
53+
54+
test:
55+
./verify_odin.sh --test pre_commit --nb_of_process $(( $(nproc --all) + 1 )) --limit_ressource

0 commit comments

Comments
 (0)