Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 2192833002: Fix GN generation for WinASAN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | courgette/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
index 2c490165f2b237a282aa3772a1ae7c2d63d190f6..1aae5cc10d42b8ed5fc9450f8710456608e33b48 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -241,16 +241,30 @@ config("asan_flags") {
}
if (is_win) {
- assert(current_cpu == "x86", "WinASan is 32-bit only currently")
- if (is_component_build) {
- libs = [
- "clang_rt.asan_dynamic-i386.lib",
- "clang_rt.asan_dynamic_runtime_thunk-i386.lib",
- ]
+ if (target_cpu == "x64") {
+ # Windows 64-bit.
+ if (is_component_build) {
+ libs = [
+ "clang_rt.asan_dynamic-x86_64.lib",
+ "clang_rt.asan_dynamic_runtime_thunk-x86_64.lib",
+ ]
+ } else {
+ # TODO(etienneb): DLLs in the non-component build should link against
+ # clang_rt.asan_dll_thunk-x86_64.lib instead.
+ libs = [ "clang_rt.asan-x86_64.lib" ]
+ }
} else {
- # TODO(rnk): DLLs in the non-component build should link against
- # clang_rt.asan_dll_thunk-i386.lib instead.
- libs = [ "clang_rt.asan-i386.lib" ]
+ assert(target_cpu == "x86", "WinASan unsupported architecture")
+ if (is_component_build) {
+ libs = [
+ "clang_rt.asan_dynamic-i386.lib",
+ "clang_rt.asan_dynamic_runtime_thunk-i386.lib",
+ ]
+ } else {
+ # TODO(etienneb): DLLs in the non-component build should link against
+ # clang_rt.asan_dll_thunk-i386.lib instead.
+ libs = [ "clang_rt.asan-i386.lib" ]
Dirk Pranke 2016/07/30 00:57:38 why not just change this to clang_rt.asan_dll_thun
+ }
}
}
}
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | courgette/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698