mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
feat(test): Add DWARF_VERIFY flag on DWARF tests (#13754)
* ci(cirrusci): add llvm package Signed-off-by: Luís Ferreira <contact@lsferreira.net> * feat(test): Add DWARF_VERIFY flag on DWARF tests DWARF readers and debuggers tend to ignore errors and try to proceed as much as possible. objdump dumping the tags, doesn't necessarily mean that the DWARF abbreviations are correct -- e.g. the reader could halt in the end, with the last abbreviation, in which the output test can't verify. Introducing a DWARF verifier is a good way to check conformancy with the standard. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This commit is contained in:
parent
89a75886d1
commit
1bec274d82
10 changed files with 36 additions and 4 deletions
|
@ -16,7 +16,7 @@ if [ -z ${HOST_DMD+x} ] ; then echo "Variable 'HOST_DMD' needs to be set."; exit
|
|||
|
||||
if [ "$OS_NAME" == "linux" ]; then
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
packages="git-core make g++ gdb gnupg curl libcurl4 tzdata zip unzip xz-utils"
|
||||
packages="git-core make g++ gdb gnupg curl libcurl4 tzdata zip unzip xz-utils llvm"
|
||||
if [ "$MODEL" == "32" ]; then
|
||||
dpkg --add-architecture i386
|
||||
packages="$packages g++-multilib libcurl4:i386"
|
||||
|
@ -30,9 +30,9 @@ if [ "$OS_NAME" == "linux" ]; then
|
|||
elif [ "$OS_NAME" == "darwin" ]; then
|
||||
# required for dlang install.sh
|
||||
brew update-reset
|
||||
brew install gnupg libarchive xz
|
||||
brew install gnupg libarchive xz llvm
|
||||
elif [ "$OS_NAME" == "freebsd" ]; then
|
||||
packages="git gmake"
|
||||
packages="git gmake devel/llvm12"
|
||||
if [ "$HOST_DMD" == "dmd-2.079.0" ] ; then
|
||||
packages="$packages lang/gcc9"
|
||||
fi
|
||||
|
@ -40,4 +40,5 @@ elif [ "$OS_NAME" == "freebsd" ]; then
|
|||
# replace default make by GNU make
|
||||
rm /usr/bin/make
|
||||
ln -s /usr/local/bin/gmake /usr/bin/make
|
||||
ln -s /usr/local/bin/llvm-dwarfdump12 /usr/bin/llvm-dwarfdump
|
||||
fi
|
||||
|
|
|
@ -33,6 +33,10 @@ if [ "$OS_NAME" == "linux" ]; then
|
|||
NM="nm --print-size"
|
||||
else
|
||||
NM=nm
|
||||
|
||||
if [ "$OS_NAME" == "darwin" ]; then
|
||||
export PATH="/usr/local/opt/llvm/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
|
||||
# clone a repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue