Consistently use the --pdb= form in scripts
Stop using the separate argument form (-Wl,-pdb,<filename>), and prefer using the option form with an implicit output name.
This commit is contained in:
1 parent
21d1cf6f18
commit
22b1ff128b
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -146,7 +146,7 @@ RUN cd test && \
|
|||||||
;; \
|
;; \
|
||||||
esac && \
|
esac && \
|
||||||
for test in stacksmash; do \
|
for test in stacksmash; do \
|
||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,-pdb,$arch/$test-asan.pdb || exit 1; \
|
$arch-w64-mingw32-clang $test.c -o $arch/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,--pdb= || exit 1; \
|
||||||
done; \
|
done; \
|
||||||
for test in ubsan; do \
|
for test in ubsan; do \
|
||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fsanitize=undefined -fno-sanitize-recover=all || exit 1; \
|
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fsanitize=undefined -fno-sanitize-recover=all || exit 1; \
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ mkdir -p $TEST_DIR
|
|||||||
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-dwarf.exe -g
|
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-dwarf.exe -g
|
||||||
|
|
||||||
# Build an executable with PDB debug info
|
# Build an executable with PDB debug info
|
||||||
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-pdb.exe -g -gcodeview -Wl,-pdb=
|
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-pdb.exe -g -gcodeview -Wl,--pdb=
|
||||||
# Strip the executable that uses pdb; the crt startup files and mingw static
|
# Strip the executable that uses pdb; the crt startup files and mingw static
|
||||||
# library object files have dwarf debug info, so the binary has got a bit of
|
# library object files have dwarf debug info, so the binary has got a bit of
|
||||||
# both, and lldb would choose to use the dwarf parts unless we strip it.
|
# both, and lldb would choose to use the dwarf parts unless we strip it.
|
||||||
|
|||||||
+2
-2
@@ -231,7 +231,7 @@ for arch in $ARCHS; do
|
|||||||
i686|x86_64) ;;
|
i686|x86_64) ;;
|
||||||
*) continue ;;
|
*) continue ;;
|
||||||
esac
|
esac
|
||||||
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,-pdb,$TEST_DIR/$test-asan.pdb
|
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,--pdb=
|
||||||
# Only run these tests on native windows; asan doesn't run in wine.
|
# Only run these tests on native windows; asan doesn't run in wine.
|
||||||
if [ -n "$NATIVE" ]; then
|
if [ -n "$NATIVE" ]; then
|
||||||
TESTS_EXTRA="$TESTS_EXTRA $test-asan"
|
TESTS_EXTRA="$TESTS_EXTRA $test-asan"
|
||||||
@@ -239,7 +239,7 @@ for arch in $ARCHS; do
|
|||||||
fi
|
fi
|
||||||
if [ -n "$HAS_CFGUARD" ]; then
|
if [ -n "$HAS_CFGUARD" ]; then
|
||||||
# Smoke test ASAN with CFGuard to make sure it doesn't trip.
|
# Smoke test ASAN with CFGuard to make sure it doesn't trip.
|
||||||
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test-asan-cfguard.exe -fsanitize=address -g -gcodeview -Wl,-pdb,$TEST_DIR/$test-asan.pdb -mguard=cf
|
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test-asan-cfguard.exe -fsanitize=address -g -gcodeview -Wl,--pdb= -mguard=cf
|
||||||
if [ -n "$NATIVE" ]; then
|
if [ -n "$NATIVE" ]; then
|
||||||
TESTS_EXTRA="$TESTS_EXTRA $test-asan-cfguard"
|
TESTS_EXTRA="$TESTS_EXTRA $test-asan-cfguard"
|
||||||
FAILURE_TESTS="$FAILURE_TESTS $test-asan-cfguard"
|
FAILURE_TESTS="$FAILURE_TESTS $test-asan-cfguard"
|
||||||
|
|||||||
Reference in new issue
Block a user