| 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 #include "tools/gn/args.h" | 5 #include "tools/gn/args.h" |
| 6 | 6 |
| 7 #include "base/sys_info.h" | 7 #include "base/sys_info.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "tools/gn/string_utils.h" | 9 #include "tools/gn/string_utils.h" |
| 10 #include "tools/gn/variables.h" | 10 #include "tools/gn/variables.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 os = "linux"; | 300 os = "linux"; |
| 301 #elif defined(OS_ANDROID) | 301 #elif defined(OS_ANDROID) |
| 302 os = "android"; | 302 os = "android"; |
| 303 #elif defined(OS_NETBSD) | 303 #elif defined(OS_NETBSD) |
| 304 os = "netbsd"; | 304 os = "netbsd"; |
| 305 #elif defined(OS_AIX) | 305 #elif defined(OS_AIX) |
| 306 os = "aix"; | 306 os = "aix"; |
| 307 #else | 307 #else |
| 308 #error Unknown OS type. | 308 #error Unknown OS type. |
| 309 #endif | 309 #endif |
| 310 // NOTE: Adding a new port? Please follow |
| 311 // https://chromium.googlesource.com/chromium/src/+/master/docs/new_port_polic
y.md |
| 310 | 312 |
| 311 // Host architecture. | 313 // Host architecture. |
| 312 static const char kX86[] = "x86"; | 314 static const char kX86[] = "x86"; |
| 313 static const char kX64[] = "x64"; | 315 static const char kX64[] = "x64"; |
| 314 static const char kArm[] = "arm"; | 316 static const char kArm[] = "arm"; |
| 315 static const char kArm64[] = "arm64"; | 317 static const char kArm64[] = "arm64"; |
| 316 static const char kMips[] = "mipsel"; | 318 static const char kMips[] = "mipsel"; |
| 317 static const char kS390X[] = "s390x"; | 319 static const char kS390X[] = "s390x"; |
| 318 static const char kPPC64[] = "ppc64"; | 320 static const char kPPC64[] = "ppc64"; |
| 319 const char* arch = nullptr; | 321 const char* arch = nullptr; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 Scope* scope) const { | 406 Scope* scope) const { |
| 405 lock_.AssertAcquired(); | 407 lock_.AssertAcquired(); |
| 406 return declared_arguments_per_toolchain_[scope->settings()]; | 408 return declared_arguments_per_toolchain_[scope->settings()]; |
| 407 } | 409 } |
| 408 | 410 |
| 409 Scope::KeyValueMap& Args::OverridesForToolchainLocked( | 411 Scope::KeyValueMap& Args::OverridesForToolchainLocked( |
| 410 Scope* scope) const { | 412 Scope* scope) const { |
| 411 lock_.AssertAcquired(); | 413 lock_.AssertAcquired(); |
| 412 return toolchain_overrides_[scope->settings()]; | 414 return toolchain_overrides_[scope->settings()]; |
| 413 } | 415 } |
| OLD | NEW |