LINUX.ORG.RU

Компактный вывод информации от make

 ,


0

1

Собираю проект с помощью cmake. Во время сборки выводится очень много отладочной информации :

Используются внутренние спецификации.
COLLECT_GCC=/opt/gcc-4.8.2/bin/c++
Целевая архитектура: x86_64-unknown-linux-gnu
Параметры конфигурации: ./configure --prefix=/opt/gcc-4.8.2/
Модель многопоточности: posix
gcc версия 4.8.2 (GCC) 
COLLECT_GCC_OPTIONS='-O0' '-std=c++11' '-fmessage-length=0' '-v' '-L/opt/gcc-4.8.2/lib' '-L/opt/gcc-4.8.2/lib64' '-I' '/home/smarkin/workspace/projects/tm_project/common/src/common' '-I' '/home/smarkin/workspace/projects/tm_project/include' '-m64' '-pipe' '-Wall' '-Wextra' '-pthread' '-std=c++11' '-o' 'CMakeFiles/test_tmsp64.dir/__/__/src/test/test.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /opt/gcc-4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/cc1plus -quiet -v -I /home/smarkin/workspace/projects/tm_project/common/src/common -I /home/smarkin/workspace/projects/tm_project/include -D_GNU_SOURCE -D_REENTRANT /home/smarkin/workspace/projects/tm_project/tmsp/src/test/test.cpp -quiet -dumpbase test.cpp -m64 -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/test_tmsp64.dir/__/__/src/test/test.cpp.o -O0 -Wall -Wextra -std=c++11 -std=c++11 -version -fmessage-length=0 -o - |
 as -v -I /home/smarkin/workspace/projects/tm_project/common/src/common -I /home/smarkin/workspace/projects/tm_project/include --64 -o CMakeFiles/test_tmsp64.dir/__/__/src/test/test.cpp.o
GNU ассемблер, версия 2.23.51.0.5 (x86_64-unknown-linux-gnu); используется BFD версии (Linux/GNU Binutils) 2.23.51.0.5.20121110
GNU C++ (GCC) версия 4.8.2 (x86_64-unknown-linux-gnu)
	скомпилировано GNU C версия 4.8.2, Версия GMP 6.0.0, версия MPFR 3.1.2, версия MPC 1.0.2
эвристики GGC: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
несуществующий каталог "/opt/gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linux-gnu/include" проигнорирован
порядок поиска для #include "...":
порядок поиска для #include <...>:
 /home/smarkin/workspace/projects/tm_project/common/src/common
 /home/smarkin/workspace/projects/tm_project/include
 /opt/gcc-4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../

Можно ли настроить cmake так , чтобы созданные им make файлы выводили в консоль компактные сообщения по типу:

[  1%] Built target tmsp32
[  2%] Built target test_tmsp32
[  3%] Building CXX object tmsp/make/cmake/CMakeFiles/tmsp64.dir/__/__/src/tmsp/tmsp_class.cpp.o

или так

[build DEP] LNK:Executable/xpdfimport
[build LNK] Executable/xpdfimport
[build CXX] shell/source/unix/sysshell/recently_used_file.cxx
[build CXX] shell/source/unix/sysshell/recently_used_file_handler.cxx
[build PKG] share
[build CXX] binaryurp/qa/test-cache.cxx
[build CXX] o3tl/qa/cow_wrapper_clients.cxx

Лол. Лучше расскажи как ты сделал что бы он эту инфу выводил :)?

batbko
()

Эммм. Он по-умолчанию так и делает, а такого вывода, как у тебя, я даже с VERBOSE=1 не видел

Gvidon ★★★★
()

йопт! cmake-скрипт встудию. Тоже хочу такой вывод подробный.

anonymous
()

)) Смешно получилось. Спасибо, что ответили. За одно и разобрался что значит "-fmessage-length=0 -v" эти флаги для make.

3.7 Options to Control Diagnostic Messages Formatting

Traditionally, diagnostic messages have been formatted irrespective of the output device's aspect (e.g. its width, ...). You can use the options described below to control the formatting algorithm for diagnostic messages, e.g. how many characters per line, how often source location information should be reported. Note that some language front ends may not honor these options.

-fmessage-length=n

Try to format error messages so that they fit on lines of about n characters. The default is 72 characters for g++ and 0 for the rest of the front ends supported by GCC. If n is zero, then no line-wrapping is done; each error message appears on a single line.

А благодаря ключу -v выводится такая подробная информация.

ssmarkin
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.