forked from OSchip/llvm-project
Use lld-link /nopdb to suppress PDB generation when DWARF is required
Fixes cfi/stats.cpp and asan/fuse-lld.cc on Windows. llvm-svn: 298545
This commit is contained in:
parent
77d3aa476e
commit
731bc9d2fe
|
@ -5,8 +5,8 @@
|
|||
// FIXME: Use -fuse-ld=lld after the old COFF linker is removed.
|
||||
// FIXME: Test will fail until we add flags for requesting dwarf or cv.
|
||||
// RUNX: %clangxx_asan -O2 %s -o %t.exe -fuse-ld=lld -Wl,-debug
|
||||
// RUN: %clangxx_asan -c -O2 %s -o %t.o -gdwarf
|
||||
// RUN: lld-link %t.o -out:%t.exe -debug -defaultlib:libcmt %asan_lib %asan_cxx_lib
|
||||
// RUN: %clangxx_asan -c -O2 %s -o %t.o -g -gdwarf
|
||||
// RUN: lld-link %t.o -out:%t.exe -debug -nopdb -defaultlib:libcmt %asan_lib %asan_cxx_lib
|
||||
// RUN: not %run %t.exe 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// RUN: env SANITIZER_STATS_PATH=%t.stats %t
|
||||
// RUN: sanstats %t.stats | FileCheck %s
|
||||
|
||||
// XFAIL: win32
|
||||
|
||||
// FIXME: We currently emit the wrong debug info under devirtualization.
|
||||
// UNSUPPORTED: devirt
|
||||
|
||||
|
|
|
@ -195,7 +195,8 @@ elif config.host_os == 'Linux' and is_linux_lto_supported():
|
|||
elif config.host_os == 'Windows' and is_windows_lto_supported():
|
||||
config.lto_supported = True
|
||||
config.lto_launch = []
|
||||
config.lto_flags = ["-fuse-ld=lld"]
|
||||
# FIXME: Remove -nopdb when PDB writing is ready.
|
||||
config.lto_flags = ["-fuse-ld=lld -Wl,-nopdb"]
|
||||
else:
|
||||
config.lto_supported = False
|
||||
|
||||
|
|
Loading…
Reference in New Issue