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

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

Issue 1921853002: Replacing hard-coded clang version by a common variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: importing toolchain.gni Created 4 years, 7 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
« no previous file with comments | « base/BUILD.gn ('k') | build/toolchain/toolchain.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler/compiler.gni") 5 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/win/visual_studio_version.gni") 7 import("//build/config/win/visual_studio_version.gni")
8 import("//build/toolchain/toolchain.gni")
8 9
9 assert(is_win) 10 assert(is_win)
10 11
11 declare_args() { 12 declare_args() {
12 # Set this to true to enable static analysis through Visual Studio's 13 # Set this to true to enable static analysis through Visual Studio's
13 # /analyze. This dramatically slows compiles and reports thousands of 14 # /analyze. This dramatically slows compiles and reports thousands of
14 # warnings, so normally this is done on a build machine and only the new 15 # warnings, so normally this is done on a build machine and only the new
15 # warnings are examined. 16 # warnings are examined.
16 use_vs_code_analysis = false 17 use_vs_code_analysis = false
17 } 18 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == 89 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==
89 "True") { 90 "True") {
90 cflags += [ 91 cflags += [
91 # cmd.exe doesn't understand ANSI escape codes by default, 92 # cmd.exe doesn't understand ANSI escape codes by default,
92 # so only enable them if something emulating them is around. 93 # so only enable them if something emulating them is around.
93 "-fansi-escape-codes", 94 "-fansi-escape-codes",
94 ] 95 ]
95 } 96 }
96 97
97 # Clang runtime libraries, such as the sanitizer runtimes, live here. 98 # Clang runtime libraries, such as the sanitizer runtimes, live here.
98 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/lib/w indows" ] 99 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_vers ion/lib/windows" ]
99 } 100 }
100 101
101 if (is_syzyasan) { 102 if (is_syzyasan) {
102 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. 103 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
103 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") 104 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible")
104 ldflags = [ "/PROFILE" ] 105 ldflags = [ "/PROFILE" ]
105 } 106 }
106 107
107 # arflags apply only to static_libraries. The normal linker configs are only 108 # arflags apply only to static_libraries. The normal linker configs are only
108 # set for executable and shared library targets so arflags must be set 109 # set for executable and shared library targets so arflags must be set
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 401
401 # Internal stuff -------------------------------------------------------------- 402 # Internal stuff --------------------------------------------------------------
402 403
403 # Config used by the MIDL template to disable warnings. 404 # Config used by the MIDL template to disable warnings.
404 config("midl_warnings") { 405 config("midl_warnings") {
405 if (is_clang) { 406 if (is_clang) {
406 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". 407 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_".
407 cflags = [ "-Wno-extra-tokens" ] 408 cflags = [ "-Wno-extra-tokens" ]
408 } 409 }
409 } 410 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | build/toolchain/toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698