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

Side by Side Diff: build/config/arm.gni

Issue 1352313002: GN: Harmonize ARM compiler settings with GYP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/sysroot.gni » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 if (current_cpu == "arm") { 5 if (current_cpu == "arm") {
6 declare_args() { 6 declare_args() {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
8 # platforms. 8 # platforms.
9 arm_version = 7 9 arm_version = 7
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 # Thumb is a reduced instruction set available on some ARM processors that 51 # Thumb is a reduced instruction set available on some ARM processors that
52 # has increased code density. 52 # has increased code density.
53 arm_use_thumb = false 53 arm_use_thumb = false
54 } else if (arm_version == 7) { 54 } else if (arm_version == 7) {
55 arm_arch = "armv7-a" 55 arm_arch = "armv7-a"
56 if (arm_tune == "") { 56 if (arm_tune == "") {
57 arm_tune = "generic-armv7-a" 57 arm_tune = "generic-armv7-a"
58 } 58 }
59 59
60 if (arm_float_abi == "") { 60 if (arm_float_abi == "") {
61 arm_float_abi = "softfp" 61 if (is_android) {
62 arm_float_abi = "softfp"
63 } else {
64 arm_float_abi = "hard"
65 }
62 } 66 }
63 67
64 arm_use_thumb = true 68 arm_use_thumb = true
65 69
66 if (arm_use_neon) { 70 if (arm_use_neon) {
67 arm_fpu = "neon" 71 arm_fpu = "neon"
68 } else { 72 } else {
69 arm_fpu = "vfpv3-d16" 73 arm_fpu = "vfpv3-d16"
70 } 74 }
71 } 75 }
72 } 76 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/sysroot.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698