Commit c3290855 authored by dpranke's avatar dpranke Committed by Commit bot

Remove old references to cpu_arch, os from GN files.

Now that os and cpu_arch are no longer needed or used anywhere.

R=brettw@chromium.org, rockot@chromium.org
BUG=344767
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

Review URL: https://codereview.chromium.org/1017273002

Cr-Commit-Position: refs/heads/master@{#322499}
parent 8ef65988
......@@ -17,27 +17,12 @@
# Use "is_*" names for intrinsic platform descriptions and build modes, and
# "use_*" names for optional features libraries, and configurations.
# TODO(dpranke): The os and cpu_arch variables exist for backwards
# compatibility and should be deleted once all of the build files and
# bots have been updated to use current_cpu/target_cpu and
# current_os/target_os instead.
if (target_os == "") {
if (defined(os)) {
# If os is defined, it was set in an args file and needs to be
# used for backwards-compatibility.
target_os = os
} else {
target_os = host_os
}
target_os = host_os
}
if (target_cpu == "") {
if (defined(cpu_arch)) {
# If cpu_arch is defined, it was set in an args file and needs to be
# used for backwards-compatibility.
target_cpu = cpu_arch
} else if (target_os == "android") {
if (target_os == "android") {
# If we're building for Android, we should assume that we want to
# build for ARM by default, not the host_cpu (which is likely x64).
# This allows us to not have to specify both target_os and target_cpu
......@@ -56,13 +41,6 @@ if (current_os == "") {
}
declare_args() {
# TODO(dpranke): These values are here for backwards compatibility and
# should be deleted when all of the builders and configs have been updated.
cpu_arch = target_cpu
os = target_os
build_cpu_arch = host_cpu
build_os = host_os
# How many symbols to include in the build. This affects the performance of
# the build since the symbols are large and dealing with them is slow.
# 2 means regular build with symbols.
......@@ -115,10 +93,6 @@ declare_args() {
}
}
# TODO(dpranke): Remove these asserts when os and cpu_arch are removed.
assert(current_cpu == cpu_arch)
assert(current_os == os)
# =============================================================================
# OS DEFINITIONS
# =============================================================================
......@@ -539,8 +513,8 @@ if (is_win) {
} else if (is_nacl) {
# TODO(GYP): This will need to change when we get NaCl working
# on multiple platforms, but this whole block of code (how we define
# host_toolchain) needs to be reworked regardless to key off of build_os
# and build_cpu_arch rather than the is_* variables.
# host_toolchain) needs to be reworked regardless to key off of host_os
# and host_cpu rather than the is_* variables.
host_toolchain = "//build/toolchain/linux:clang_x64"
}
......
......@@ -573,7 +573,7 @@ config("runtime_library") {
# TODO(jdduke) Re-enable on mips after resolving linking
# issues with libc++ (crbug.com/456380).
if (cpu_arch != "mipsel" && cpu_arch != "mips64el") {
if (current_cpu != "mipsel" && current_cpu != "mips64el") {
ldflags += [ "-Wl,--warn-shared-textrel" ]
}
ldflags += [ "-nostdlib" ]
......@@ -983,7 +983,7 @@ if (is_win) {
# TODO(jdduke) Re-enable on mips after resolving linking
# issues with libc++ (crbug.com/456380).
if (cpu_arch != "mipsel" && cpu_arch != "mips64el") {
if (current_cpu != "mipsel" && current_cpu != "mips64el") {
common_optimize_on_ldflags += [
# Warn in case of text relocations.
"-Wl,--warn-shared-textrel",
......
......@@ -211,12 +211,6 @@ template("gcc_toolchain") {
target_os = target_os
target_cpu = target_cpu
# TODO(dpranke): These values are here for backwards compatibility and
# should be deleted when all of the builders and configs have been
# updated.
cpu_arch = current_cpu
os = current_os
if (defined(invoker.is_clang)) {
is_clang = invoker.is_clang
}
......
......@@ -201,9 +201,6 @@ template("msvc_toolchain") {
# passed to the build. They are ignored when this is the default toolchain.
toolchain_args() {
current_cpu = invoker.current_cpu
# TODO(dpranke): cpu_arch is here for backwards compatibility.
cpu_arch = current_cpu
}
}
}
......
......@@ -37,13 +37,13 @@ if (enable_nacl) {
if (enable_nacl_untrusted) {
data_deps = [
# TODO(GYP): handle other cpu_arch's correctly.
# TODO(GYP): handle other architectures correctly.
"//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:irt_x64)",
]
}
if (enable_pnacl) {
data_deps += [
# TODO(GYP): handle other cpu_arch's correctly.
# TODO(GYP): handle other architectures correctly.
"//ppapi/native_client/src/untrusted/pnacl_support_extension",
]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment