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 # ============================================================================= | 5 # ============================================================================= |
6 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 "//build/config/win:winver", | 467 "//build/config/win:winver", |
468 ] | 468 ] |
469 } | 469 } |
470 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || | 470 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || |
471 current_os == "winrt_10") { | 471 current_os == "winrt_10") { |
472 _native_compiler_configs += [ "//build/config/win:target_winrt" ] | 472 _native_compiler_configs += [ "//build/config/win:target_winrt" ] |
473 } | 473 } |
474 if (is_posix) { | 474 if (is_posix) { |
475 _native_compiler_configs += [ | 475 _native_compiler_configs += [ |
476 "//build/config/gcc:no_exceptions", | 476 "//build/config/gcc:no_exceptions", |
477 "//build/config/gcc:symbol_visibility_hidden", | 477 "//build/config/gcc:default_symbol_visibility", |
478 ] | 478 ] |
479 } | 479 } |
480 | 480 |
481 if (is_android) { | 481 if (is_android) { |
482 _native_compiler_configs += | 482 _native_compiler_configs += |
483 [ "//build/config/android:default_cygprofile_instrumentation" ] | 483 [ "//build/config/android:default_cygprofile_instrumentation" ] |
484 } | 484 } |
485 | 485 |
486 if (is_clang && !is_nacl) { | 486 if (is_clang && !is_nacl) { |
487 _native_compiler_configs += [ | 487 _native_compiler_configs += [ |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 forward_variables_from(invoker, "*") | 585 forward_variables_from(invoker, "*") |
586 | 586 |
587 # All shared libraries must have the sanitizer deps to properly link in | 587 # All shared libraries must have the sanitizer deps to properly link in |
588 # asan mode (this target will be empty in other cases). | 588 # asan mode (this target will be empty in other cases). |
589 if (!defined(deps)) { | 589 if (!defined(deps)) { |
590 deps = [] | 590 deps = [] |
591 } | 591 } |
592 deps += [ "//build/config/sanitizers:deps" ] | 592 deps += [ "//build/config/sanitizers:deps" ] |
593 } | 593 } |
594 } | 594 } |
OLD | NEW |