命令参数说明
构建亲和功能用于分析makefile、CMakeLists.txt中可以替换鲲鹏加速库的内容,并提供替换建议和功能修复。
命令功能
查看构建亲和所有命令参数。
命令格式
devkit advisor constr-check -h
使用实例
执行以下命令,查看所有命令参数说明。
devkit advisor constr-check -h
返回信息如下:
OVERVIEW Run this command to analyze the content in Makefile and CMakeLists.txt that can be replaced with content in the Kunpeng library, and provides replacement suggestions and function repair. USAGE devkit advisor constr-check {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --cmd COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-b {make,cmake} | --build-tool {make,cmake}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT] OPTIONS -i, --input INPUT_PATH [Mandatory option] Specifies the folder or package path of the source code to be scanned. -c, --cmd COMMAND [Mandatory option] Specifies the build command of the source code. -o, --output OUTPUT_PATH Specify the path for storing the scan report and the file name. By default, the file is stored in the current path(pwd) and its name is in the format of function name_timestamp. -b, --build-tool {make,cmake} Specify the building tool. The default value is make. -l, --log-level {0,1,2,3} Specifies the log level of the current task, 0(DEBUG) | 1(INFO) | 2(WARNING) | 3(ERROR). The default value is 1(INFO). -r, --report-type {all,json,html,csv} Specify the report type for the scan report. The default value is all. --set-timeout <min> Specifies the timeout period of a task. By default, the timeout period is not set. EXAMPLE # Scan a project and generate scanning reports. devkit advisor constr-check -i /home/advisor/project -b make -c 'make' "
父主题: 构建亲和