Skip to content

Commit b35b629

Browse files
committed
[gn build] Build win asan libraries against MutliThreadedDLL
win asan only supports /MD. Without this, the asan runtime cannot intercept functions.
1 parent 961b052 commit b35b629

File tree

1 file changed

+1
-0
lines changed
  • llvm/utils/gn/secondary/compiler-rt/lib/asan

1 file changed

+1
-0
lines changed

llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if (current_toolchain == host_toolchain) {
6868
if (current_os != "win") {
6969
cflags += [ "-ftls-model=initial-exec" ]
7070
} else {
71+
cflags += [ "/MD" ]
7172
ldflags = [ "/OPT:NOICF" ]
7273
}
7374

0 commit comments

Comments
 (0)