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

Side by Side Diff: BUILD.gn

Issue 2498223004: [build] Add build options for uftrace support
Patch Set: build: Add build options for uftrace support Created 4 years, 1 month 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 | Makefile » ('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 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 v8_no_inline = false 62 v8_no_inline = false
63 63
64 # Override OS page size when generating snapshot 64 # Override OS page size when generating snapshot
65 v8_os_page_size = "0" 65 v8_os_page_size = "0"
66 66
67 # Similar to vfp but on MIPS. 67 # Similar to vfp but on MIPS.
68 v8_can_use_fpu_instructions = true 68 v8_can_use_fpu_instructions = true
69 69
70 # Similar to the ARM hard float ABI but on MIPS. 70 # Similar to the ARM hard float ABI but on MIPS.
71 v8_use_mips_abi_hardfloat = true 71 v8_use_mips_abi_hardfloat = true
72
73 # Build with -pg option for gprof or uftrace
74 v8_pg_build = false
75
76 # Build with -finstrument-functions option for uftrace or general function
77 # instrumentation
78 v8_finstrument_build = false
72 } 79 }
73 80
74 # Set project-specific defaults for some args if not provided in args.gn. The 81 # Set project-specific defaults for some args if not provided in args.gn. The
75 # defaults can be set in the respective build_overrides files. 82 # defaults can be set in the respective build_overrides files.
76 if (v8_imminent_deprecation_warnings == "") { 83 if (v8_imminent_deprecation_warnings == "") {
77 if (defined(v8_imminent_deprecation_warnings_default)) { 84 if (defined(v8_imminent_deprecation_warnings_default)) {
78 v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default 85 v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default
79 } else { 86 } else {
80 v8_imminent_deprecation_warnings = false 87 v8_imminent_deprecation_warnings = false
81 } 88 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 defines += [ "DEBUG" ] 371 defines += [ "DEBUG" ]
365 } 372 }
366 373
367 if (v8_no_inline) { 374 if (v8_no_inline) {
368 cflags += [ 375 cflags += [
369 "-fno-inline-functions", 376 "-fno-inline-functions",
370 "-fno-inline", 377 "-fno-inline",
371 ] 378 ]
372 } 379 }
373 380
381 if (v8_pg_build) {
382 cflags += [
383 "-pg",
384 "-fno-omit-frame-pointer",
385 ]
386 }
387
388 if (v8_finstrument_build) {
389 cflags += [
390 "-finstrument-functions",
391 "-fno-omit-frame-pointer",
392 ]
393 }
394
374 if (is_clang) { 395 if (is_clang) {
375 cflags += [ 396 cflags += [
376 "-Wsign-compare", 397 "-Wsign-compare",
377 398
378 # TODO(hans): Remove once http://crbug.com/428099 is resolved. 399 # TODO(hans): Remove once http://crbug.com/428099 is resolved.
379 "-Winconsistent-missing-override", 400 "-Winconsistent-missing-override",
380 ] 401 ]
381 402
382 if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" || 403 if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
383 v8_current_cpu == "mips64el") { 404 v8_current_cpu == "mips64el") {
(...skipping 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 ] 3018 ]
2998 3019
2999 configs = [ 3020 configs = [
3000 ":external_config", 3021 ":external_config",
3001 ":internal_config_base", 3022 ":internal_config_base",
3002 ] 3023 ]
3003 } 3024 }
3004 3025
3005 v8_fuzzer("wasm_data_section_fuzzer") { 3026 v8_fuzzer("wasm_data_section_fuzzer") {
3006 } 3027 }
OLDNEW
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698