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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 if (is_linux) { | 408 if (is_linux) { |
409 _native_compiler_configs += [ "//build/config/linux:sdk" ] | 409 _native_compiler_configs += [ "//build/config/linux:sdk" ] |
410 } else if (is_mac) { | 410 } else if (is_mac) { |
411 _native_compiler_configs += [ "//build/config/mac:sdk" ] | 411 _native_compiler_configs += [ "//build/config/mac:sdk" ] |
412 } else if (is_ios) { | 412 } else if (is_ios) { |
413 _native_compiler_configs += [ "//build/config/ios:sdk" ] | 413 _native_compiler_configs += [ "//build/config/ios:sdk" ] |
414 } else if (is_android) { | 414 } else if (is_android) { |
415 _native_compiler_configs += [ "//build/config/android:sdk" ] | 415 _native_compiler_configs += [ "//build/config/android:sdk" ] |
416 } | 416 } |
417 | 417 |
418 if (is_clang) { | 418 if (is_clang && !is_nacl) { |
419 _native_compiler_configs += [ | 419 _native_compiler_configs += [ |
420 "//build/config/clang:find_bad_constructs", | 420 "//build/config/clang:find_bad_constructs", |
421 "//build/config/clang:extra_warnings", | 421 "//build/config/clang:extra_warnings", |
422 ] | 422 ] |
423 } | 423 } |
424 | 424 |
425 # Optimizations and debug checking. | 425 # Optimizations and debug checking. |
426 if (is_debug) { | 426 if (is_debug) { |
427 _native_compiler_configs += [ "//build/config:debug" ] | 427 _native_compiler_configs += [ "//build/config:debug" ] |
428 _default_optimization_config = "//build/config/compiler:no_optimize" | 428 _default_optimization_config = "//build/config/compiler:no_optimize" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 forward_variables_from(invoker, "*") | 618 forward_variables_from(invoker, "*") |
619 | 619 |
620 # All shared libraries must have the sanitizer deps to properly link in | 620 # All shared libraries must have the sanitizer deps to properly link in |
621 # asan mode (this target will be empty in other cases). | 621 # asan mode (this target will be empty in other cases). |
622 if (!defined(deps)) { | 622 if (!defined(deps)) { |
623 deps = [] | 623 deps = [] |
624 } | 624 } |
625 deps += [ "//build/config/sanitizers:deps" ] | 625 deps += [ "//build/config/sanitizers:deps" ] |
626 } | 626 } |
627 } | 627 } |
OLD | NEW |