Skip to content
Snippets Groups Projects
Commit b3a9f742 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

ci: Explicitly specify C++ compilers

This may be necessary in certain situations, for example when performing
static analysis with scan-build, to ensure that the standard C++ library
is added to the linker. See
panel-plugins/xfce4-sensors-plugin#48 (comment 90769)
parent 1644b65b
No related branches found
No related tags found
1 merge request!117ci: Explicitly specify C++ compilers
Pipeline #29112 passed
......@@ -74,6 +74,7 @@ translations:
build-gcc:
variables:
CC: "gcc"
CXX: "g++"
CONFIGURE_FLAGS: "--enable-debug=werror"
before_script:
# We can't use shell parameter expansion under the variables keyword above,
......@@ -87,9 +88,10 @@ build-gcc:
build-clang:
variables:
CC: "clang"
CXX: "clang++"
CONFIGURE_FLAGS: "--enable-debug=werror"
before_script:
- WRAPPER=${SCAN_BUILD+scan-build --use-cc=clang --use-c++=clang}
- WRAPPER=${SCAN_BUILD+scan-build --use-cc=clang --use-c++=clang++}
extends: .build
build-no-x11:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment