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

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

Issue 3010023002: Reland: [infra] Roll clang toolchain forward (Closed)
Patch Set: Created 3 years, 3 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 | « DEPS ('k') | build/toolchain/android/BUILD.gn » ('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 declare_args() { 5 declare_args() {
6 # The optimization level to use for debug builds. 6 # The optimization level to use for debug builds.
7 if (is_android) { 7 if (is_android) {
8 # On Android we kind of optimize some things that don't affect debugging 8 # On Android we kind of optimize some things that don't affect debugging
9 # much even when optimization is disabled to get the binary size down. 9 # much even when optimization is disabled to get the binary size down.
10 debug_optimization_level = "s" 10 debug_optimization_level = "s"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } else if (current_cpu == "x86") { 322 } else if (current_cpu == "x86") {
323 cflags += [ "--target=i686-linux-androideabi" ] 323 cflags += [ "--target=i686-linux-androideabi" ]
324 ldflags += [ "--target=i686-linux-androideabi" ] 324 ldflags += [ "--target=i686-linux-androideabi" ]
325 } else if (current_cpu == "x64") { 325 } else if (current_cpu == "x64") {
326 cflags += [ "--target=x86_64-linux-androideabi" ] 326 cflags += [ "--target=x86_64-linux-androideabi" ]
327 ldflags += [ "--target=x86_64-linux-androideabi" ] 327 ldflags += [ "--target=x86_64-linux-androideabi" ]
328 } 328 }
329 } 329 }
330 } 330 }
331 331
332 # We want to force a recompile and relink of the world whenever our toolchain
333 # changes since artifacts from an older version of the toolchain may or may
334 # not be compatible with newer ones. To achieve this, we insert a synthetic
335 # define into the compile line.
336 if (is_clang && (is_linux || is_mac)) {
337 if (is_linux) {
338 toolchain_stamp_file = "//buildtools/linux64/clang.stamp"
339 } else {
340 toolchain_stamp_file = "//buildtools/mac/clang.stamp"
341 }
342 toolchain_version = read_file(toolchain_stamp_file, "trim string")
343 defines = [ "TOOLCHAIN_VERSION=$toolchain_version" ]
344 }
345
332 # Assign any flags set for the C compiler to asmflags so that they are sent 346 # Assign any flags set for the C compiler to asmflags so that they are sent
333 # to the assembler. The Windows assembler takes different types of flags 347 # to the assembler. The Windows assembler takes different types of flags
334 # so only do so for posix platforms. 348 # so only do so for posix platforms.
335 if (is_posix) { 349 if (is_posix) {
336 asmflags += cflags 350 asmflags += cflags
337 asmflags += cflags_c 351 asmflags += cflags_c
338 } 352 }
339 } 353 }
340 354
341 config("compiler_arm_fpu") { 355 config("compiler_arm_fpu") {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 713 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
700 } 714 }
701 ldflags = [ "/DEBUG" ] 715 ldflags = [ "/DEBUG" ]
702 } else { 716 } else {
703 cflags = [ 717 cflags = [
704 "-g3", 718 "-g3",
705 "-ggdb3", 719 "-ggdb3",
706 ] 720 ]
707 } 721 }
708 } 722 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/toolchain/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698