File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// REQUIRES: lld-available
4
4
//
5
- // FIXME: Use -fuse-ld=lld after the old COFF linker is removed.
6
- // FIXME: Test will fail until we add flags for requesting dwarf or cv.
7
- // RUNX: %clangxx_asan -O2 %s -o %t.exe -fuse-ld=lld -Wl,-debug
8
- // RUN: %clangxx_asan -c -O2 %s -o %t.o -g -gdwarf
9
- // RUN: lld-link %t.o -out:%t.exe -debug -nopdb -defaultlib:libcmt %asan_lib %asan_cxx_lib
5
+ // RUN: %clangxx_asan -O2 %s -o %t.exe -g -gcodeview -fuse-ld=lld -Wl,-debug
10
6
// RUN: not %run %t.exe 2>&1 | FileCheck %s
11
7
12
8
#include < stdlib.h>
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ if config.lto_supported:
32
32
config.substitutions.append((r" %clangxx_cfi_diag " , clang_cfi + cxx + non_dso + diag))
33
33
config.substitutions.append((r" %clangxx_cfi_dso " , clang_cfi + cxx + dso))
34
34
config.substitutions.append((r" %clangxx_cfi_dso_diag " , clang_cfi + cxx + dso + diag))
35
+ config.substitutions.append((r" %debug_info_flags" , ' ' .join(config.debug_info_flags)))
35
36
else:
36
37
config.unsupported = True
37
38
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx_cfi -g -fsanitize-stats -o %t %s
1
+ // RUN: %clangxx_cfi %debug_info_flags -fsanitize-stats -o %t %s
2
2
// RUN: env SANITIZER_STATS_PATH=%t.stats %run %t
3
3
// RUN: sanstats %t.stats | FileCheck %s
4
4
Original file line number Diff line number Diff line change @@ -254,8 +254,7 @@ elif config.host_os == 'Linux' and is_linux_lto_supported():
254
254
elif config .host_os == 'Windows' and is_windows_lto_supported ():
255
255
config .lto_supported = True
256
256
config .lto_launch = []
257
- # FIXME: Remove -nopdb when PDB writing is ready.
258
- config .lto_flags = ["-fuse-ld=lld -Wl,-nopdb" ]
257
+ config .lto_flags = ["-fuse-ld=lld" ]
259
258
else :
260
259
config .lto_supported = False
261
260
You can’t perform that action at this time.
0 commit comments