From 2aeef64056c9341f01aa3e04b45091ae71ae6869 Mon Sep 17 00:00:00 2001
From: James Tucker <raggi@google.com>
Date: Sat, 3 Mar 2018 21:33:01 -0800
Subject: [PATCH] [all] Fuchsia architectures aligned with Zircon

Change-Id: Ib33df82650b9d96c66712bb3fc849c4188790b00
---
 build_overview.md                    |  8 ++++----
 build_variants.md                    |  4 ++--
 ctu_analysis.md                      |  2 +-
 development/languages/dart/ides.md   |  2 +-
 development/languages/rust/README.md |  2 +-
 fuchsia_paver.md                     |  4 ++--
 getting_started.md                   | 10 +++++-----
 7 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/build_overview.md b/build_overview.md
index 5bcdc449ab9..b1514231cb6 100644
--- a/build_overview.md
+++ b/build_overview.md
@@ -117,13 +117,13 @@ $ dot -Tpng tree.dot -o tree.png
 ### Inspecting the content of a GN target
 
 ```bash
-$ buildtools/gn desc out/debug-x86-64 //path/to/my:target
+$ buildtools/gn desc out/debug-x86 //path/to/my:target
 ```
 
 ### Finding references to a GN target
 
 ```bash
-$ buildtools/gn refs out/debug-x86-64 //path/to/my:target
+$ buildtools/gn refs out/debug-x86 //path/to/my:target
 ```
 
 ### Referencing targets for the build host
@@ -146,7 +146,7 @@ file:
 If a target is defined in a GN build file as `//foo/bar/blah:dash`, that target
 (and its dependencies) can be built with:
 ```bash
-$ buildtools/ninja -C out/debug-x86-64 -j64 foo/bar/blah:dash
+$ buildtools/ninja -C out/debug-x86 -j64 foo/bar/blah:dash
 ```
 Note that this only works for targets in the default toolchain.
 
@@ -161,7 +161,7 @@ $ buildtools/gn help ninja_rules
 You can also browse the set of Ninja targets currently defined in your output
 directory with:
 ```bash
-$ buildtools/ninja -C out/debug-x86-64 -t browse
+$ buildtools/ninja -C out/debug-x86 -t browse
 ```
 Note that the presence of a Ninja target does not mean it will be built - for
 that it needs to depend on the “default” target.
diff --git a/build_variants.md b/build_variants.md
index b01e6df6879..8df384bc522 100644
--- a/build_variants.md
+++ b/build_variants.md
@@ -53,9 +53,9 @@ set the `select_variant` GN build argument directly.
    approximate what you want and then edit the `select_variant` value `gen.py`
    produces:
    * You can just edit the `args.gn` file in the GN output directory
-     (e.g. `out/debug-x86-64/args.gn`) and the next `ninja` run (aka `fx build`)
+     (e.g. `out/debug-x86/args.gn`) and the next `ninja` run (aka `fx build`)
      will re-run `gn gen` with those changes.
-   * You can use the command `./buildtools gn args out/debug-x86-64`, which
+   * You can use the command `./buildtools gn args out/debug-x86`, which
      will run your `$EDITOR` on the `args.gn` file and then do `gn gen`
      immediately so you can see any errors in your GN syntax.
 
diff --git a/ctu_analysis.md b/ctu_analysis.md
index dfeda431910..a37cad6dba8 100644
--- a/ctu_analysis.md
+++ b/ctu_analysis.md
@@ -75,7 +75,7 @@ make clean && ./run.sh
 In order to build only the kernel, specify a `TARGET` as an environment variable:
 
 ```
-make clean && TARGET=./build-zircon-pc-x86-64/zircon.elf ./run.sh
+make clean && TARGET=./build-zircon-pc-x86/zircon.elf ./run.sh
 ```
 
 The script also requires [clangify.py](https://gist.github.com/karkhaz/2ab5e8c7a8783318d44ceca715f20438) to be in the zircon directory with executable bit set. After the analysis has finished, there will be a `.result-xtu` directory, containing:
diff --git a/development/languages/dart/ides.md b/development/languages/dart/ides.md
index f093d22862d..f224f01d284 100644
--- a/development/languages/dart/ides.md
+++ b/development/languages/dart/ides.md
@@ -52,5 +52,5 @@ following:
   build. This means that if you have a broken release build, any release build
   overrides a debug build. With a broken release build, no amount of correct
   rebuilding on debug will solve the issue until you delete
-  `//out/release-x86-64`.
+  `//out/release-x86`.
 - Delete the .packages file in your project and rebuild.
diff --git a/development/languages/rust/README.md b/development/languages/rust/README.md
index 85968bd5368..2e1decae940 100644
--- a/development/languages/rust/README.md
+++ b/development/languages/rust/README.md
@@ -116,7 +116,7 @@ If you want to test out Fuchsia with your own custom-built versions of rustc or
 you can set the `rustc_prefix` argument to `fx set`, like this:
 
 ```
-fx set x86-64 --release --args "rustc_prefix=\"/path/to/bin/dir\""
+fx set x86 --release --args "rustc_prefix=\"/path/to/bin/dir\""
 ```
 
 ## Going further
diff --git a/fuchsia_paver.md b/fuchsia_paver.md
index 568e0145269..feed33e97c2 100644
--- a/fuchsia_paver.md
+++ b/fuchsia_paver.md
@@ -23,7 +23,7 @@ extend to allow you to build what you need.
 ## TL;DR
 
 Read this all before? Here are the common case commands
-1. `fx set x86-64`
+1. `fx set x86`
 2. `fx full-build`
 3. Make the install media
     * [[ insert USB drive into host ]]
@@ -37,7 +37,7 @@ Read this all before? Here are the common case commands
 Detailed instructions for obtaining and building Fuchsia are available from the
 [Getting Started](getting_started.md) guide, but we'll assume here that the
 target system is x86-based and that you want to build a complete system. To
-configure our build for this we can run `fx set x86-64` and then build with
+configure our build for this we can run `fx set x86` and then build with
 `fx full-build`.
 
 ## Creating install media
diff --git a/getting_started.md b/getting_started.md
index cf75f256aaa..9f378d20d68 100644
--- a/getting_started.md
+++ b/getting_started.md
@@ -67,13 +67,13 @@ the `fx` command should already be in your path. If not, the command is also
 available as `scripts/fx`.
 
 ```
-fx set x86-64
+fx set x86
 fx full-build
 ```
 
 The first command selects the build configuration you wish to build and
 generates the build system itself in an output directory
-(e.g., `out/debug-x86-64`).
+(e.g., `out/debug-x86`).
 
 The second command actually executes the build, transforming the source code in
 build products. If you modify the source tree, you can do an incremental build
@@ -83,15 +83,15 @@ Alternatively, you can use the [underlying build system directly](build_system.m
 
 #### [optional] Customize Build Environment
 
-By default you will get a x86-64 debug build. You can skip this section unless
+By default you will get a x86 debug build. You can skip this section unless
 you want something else.
 
 Run `fset-usage` to see a list of build options. Some examples:
 
 ```
-fx set x86-64              # x86-64 debug build
+fx set x86                 # x86 debug build
 fx set arm64               # arm64 debug build
-fx set x86-64 --release    # x86-64 release build
+fx set x86 --release       # x86 release build
 ```
 
 #### [optional] Accelerate builds with `ccache` and `goma`
-- 
GitLab