| OLD | NEW |
| 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/clang/clang.gni") |
| 6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 import("//build/config/win/visual_studio_version.gni") | 8 import("//build/config/win/visual_studio_version.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 | 10 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 | 429 |
| 430 # Internal stuff -------------------------------------------------------------- | 430 # Internal stuff -------------------------------------------------------------- |
| 431 | 431 |
| 432 # Config used by the MIDL template to disable warnings. | 432 # Config used by the MIDL template to disable warnings. |
| 433 config("midl_warnings") { | 433 config("midl_warnings") { |
| 434 if (is_clang) { | 434 if (is_clang) { |
| 435 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 435 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 436 cflags = [ "-Wno-extra-tokens" ] | 436 cflags = [ "-Wno-extra-tokens" ] |
| 437 } | 437 } |
| 438 } | 438 } |
| 439 |
| 440 # Instrumentation ------------------------------------------------------------- |
| 441 |
| 442 config("default_cygprofile_instrumentation") { |
| 443 if (use_order_profiling) { |
| 444 configs = [ ":cygprofile_instrumentation" ] |
| 445 } else { |
| 446 configs = [ ":no_cygprofile_instrumentation" ] |
| 447 } |
| 448 } |
| 449 |
| 450 config("cygprofile_instrumentation") { |
| 451 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ] |
| 452 cflags = [ "-Xclang", "-finstrument-functions" ] |
| 453 } |
| 454 |
| 455 config("no_cygprofile_instrumentation") { |
| 456 } |
| OLD | NEW |