Skip to content

Commit 4d55f0b

Browse files
committed
[gn] attempt to port 53a81d4 more (win/asan dynamic runtime)
1 parent 4a63d62 commit 4d55f0b

File tree

1 file changed

+2
-7
lines changed
  • llvm/utils/gn/secondary/compiler-rt/lib/asan

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ if (current_toolchain == host_toolchain) {
6767
cflags = []
6868
if (target_os != "win") {
6969
cflags += [ "-ftls-model=initial-exec" ]
70+
} else {
71+
ldflags = [ "/OPT:NOICF" ]
7072
}
7173

7274
# FIXME: link rt dl m pthread log
@@ -175,13 +177,6 @@ if (current_toolchain == host_toolchain) {
175177
"//compiler-rt/lib/ubsan:cxx_sources",
176178
"//compiler-rt/lib/ubsan:sources",
177179
]
178-
if (current_os == "win") {
179-
deps += [
180-
":weak_interception",
181-
"//compiler-rt/lib/sanitizer_common:weak_interception",
182-
"//compiler-rt/lib/ubsan:weak_interception",
183-
]
184-
}
185180
defines = [ "ASAN_DYNAMIC" ]
186181
if (current_os == "win") {
187182
defines += [ "INTERCEPTION_DYNAMIC_CRT" ]

0 commit comments

Comments
 (0)