0199
This commit is contained in:
parent
ededa875d6
commit
d7136055d9
2
cbuild
2
cbuild
@ -1 +1 @@
|
||||
Subproject commit 991ee072b3b0e4507c80dfac873c7d41d06f0b69
|
||||
Subproject commit 5e23ef8156a85a981d60152990bde53d6e8eefe9
|
||||
@ -47,8 +47,7 @@ case "$TASK" in
|
||||
# -fprofile-use enables compiler to use profiling info files to optimize executable
|
||||
# -fprofile-prefix-path sets path where profiling info about objects are be saved
|
||||
# -fdata-sections -ffunction-sections -Wl,--gc-sections removes unused code
|
||||
C_ARGS="-O2 -flto=auto -fuse-linker-plugin -fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects \
|
||||
-fdata-sections -ffunction-sections -Wl,--gc-sections"
|
||||
C_ARGS="-O2 -flto=auto -fuse-linker-plugin -fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects -fdata-sections -ffunction-sections -Wl,--gc-sections"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
LINKER_ARGS="$CPP_ARGS"
|
||||
PRE_TASK_SCRIPT=
|
||||
@ -104,7 +103,7 @@ case "$TASK" in
|
||||
;;
|
||||
# executes $EXEC_FILE with valgrind memory checker
|
||||
valgrind)
|
||||
VALGRIND_ARGS="-s --log-file=valgrind.log --read-var-info=yes --track-origins=yes --fullpath-after=$PROJECT/ --leak-check=full --show-leak-kinds=all"
|
||||
VALGRIND_ARGS="-s --read-var-info=yes --track-origins=yes --fullpath-after=$PROJECT/ --leak-check=full --show-leak-kinds=all"
|
||||
TASK_SCRIPT=cbuild/default_tasks/valgrind.sh
|
||||
;;
|
||||
# generates profiling info
|
||||
|
||||
@ -29,7 +29,7 @@ I don't really like printf function (and its variants), so i made safer and more
|
||||
## how to use it:
|
||||
+ **format construction:**
|
||||
```
|
||||
kp_fmt fmt= kp_fgColor | kp_bgColor | kprint_fdataFmt | flags | ktid;
|
||||
kp_fmt fmt= kp_fgColor | kp_bgColor | kp_dataFmt | flags | ktid;
|
||||
```
|
||||
[more about `kp_fmt`](kp_fmt.md)
|
||||
+ fgColor and bgColor can be set to change console output color
|
||||
|
||||
Loading…
Reference in New Issue
Block a user