Coverity Self-Build无法构建C++ 17应用程序

Pav*_*nko 6 c++ gcc static-analysis coverity c++17

我正在尝试将Coverity Scan与使用C++ 17(ARM GCC Embedded v7.2)编写的嵌入式应用程序一起使用.应用程序本身构建良好,错误/无警告; 但是,Coverity Scan自构建工具(cov-analysis-linux64-2017.07最新版本)无法编译某些C++文件,但出现以下错误(删节):

[19888] EXECUTING: /home/pavel/opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/as -I . -I src -I src/os_config -I eigen -I senoval -I legilimens -I popcop/c++ -I build/current_build_info -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -meabi=5 -alms=build/lst/ch.lst -o build/obj/ch.o /tmp/ccK73Qaa.s
"/home/pavel/opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include/c++/7.2.1/bits/c++17_warning.h", line 32:
          error #35: #error directive: This file requires compiler and library
          support for the ISO C++ 2017 standard. This support must be enabled
          with the -std=c++17 or -std=gnu++17 compiler options.
  #error This file requires compiler and library support \
   ^
Run Code Online (Sandbox Code Playgroud)

可以看出,构建工具没有将选项传递-std=c++17给汇编程序.顺便说一句,应用程序自己的构建系统不会直接调用汇编程序; 自我构建工具可以自行完成.这就是Coverity Self-Build过程的配置方式:

cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template
make clean
cov-build --dir build/cov-int make -j8
cd build
tar czvf coverity.tgz cov-int
Run Code Online (Sandbox Code Playgroud)

如何配置自构建工具以正确构建C++ 17代码?