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

Side by Side Diff: build/config/win/BUILD.gn

Issue 2081543002: Add gn Blink GC plugin options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing 'import's 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/clang/clang.gni")
5 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/win/visual_studio_version.gni") 8 import("//build/config/win/visual_studio_version.gni")
8 import("//build/toolchain/toolchain.gni") 9 import("//build/toolchain/toolchain.gni")
9 10
10 assert(is_win) 11 assert(is_win)
11 12
12 declare_args() { 13 declare_args() {
13 # Set this to true to enable static analysis through Visual Studio's 14 # Set this to true to enable static analysis through Visual Studio's
14 # /analyze. This dramatically slows compiles and reports thousands of 15 # /analyze. This dramatically slows compiles and reports thousands of
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == 87 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==
87 "True") { 88 "True") {
88 cflags += [ 89 cflags += [
89 # cmd.exe doesn't understand ANSI escape codes by default, 90 # cmd.exe doesn't understand ANSI escape codes by default,
90 # so only enable them if something emulating them is around. 91 # so only enable them if something emulating them is around.
91 "-fansi-escape-codes", 92 "-fansi-escape-codes",
92 ] 93 ]
93 } 94 }
94 95
95 # Clang runtime libraries, such as the sanitizer runtimes, live here. 96 # Clang runtime libraries, such as the sanitizer runtimes, live here.
96 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_vers ion/lib/windows" ] 97 lib_dirs = [ "$clang_base_path/lib/clang/$clang_version/lib/windows" ]
97 } 98 }
98 99
99 if (is_syzyasan) { 100 if (is_syzyasan) {
100 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. 101 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
101 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") 102 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible")
102 ldflags = [ "/PROFILE" ] 103 ldflags = [ "/PROFILE" ]
103 } 104 }
104 105
105 # arflags apply only to static_libraries. The normal linker configs are only 106 # arflags apply only to static_libraries. The normal linker configs are only
106 # set for executable and shared library targets so arflags must be set 107 # set for executable and shared library targets so arflags must be set
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 387
387 # Internal stuff -------------------------------------------------------------- 388 # Internal stuff --------------------------------------------------------------
388 389
389 # Config used by the MIDL template to disable warnings. 390 # Config used by the MIDL template to disable warnings.
390 config("midl_warnings") { 391 config("midl_warnings") {
391 if (is_clang) { 392 if (is_clang) {
392 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". 393 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_".
393 cflags = [ "-Wno-extra-tokens" ] 394 cflags = [ "-Wno-extra-tokens" ]
394 } 395 }
395 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698