mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
Make distinction between CC and CXX in the testsuite. (#16434)
Clang makes a distinction between clang and clang++. In particular, clang++ will give a warning when it is passed `.c` source files; and the extra output warning text means that dmd testsuite output checking fails. The warning can be silenced (-Wno-deprecated) but then other tests will fail because `#ifdef __cplusplus` will be true, leading to header file import issues.
This commit is contained in:
parent
ebe8611b12
commit
afc38e9dca
6 changed files with 45 additions and 23 deletions
2
.github/workflows/runnable_cxx.yml
vendored
2
.github/workflows/runnable_cxx.yml
vendored
|
@ -207,7 +207,7 @@ jobs:
|
|||
tar -x -C ${{ github.workspace }} -f ${{ github.workspace }}/clang+llvm-${{ matrix.cxx-version }}-${{ matrix.arch }}.tar.xz
|
||||
TMP_CC='${{ github.workspace }}/clang+llvm-${{ matrix.cxx-version }}-${{ matrix.arch }}/bin/clang'
|
||||
# On OSX, the system header are installed via `xcode-select` and not distributed with clang
|
||||
# Since some part of the testsuite rely on CC being only a binary (not a command),
|
||||
# Since some part of the testsuite rely on CC and CXX being only a binary (not a command),
|
||||
# and config files where only introduced from 6.0.0, use a wrapper script.
|
||||
if [ "${{ matrix.os }}" == "macOS-11" ]; then
|
||||
# Note: heredoc shouldn't be indented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue