1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# These are primarily relevant in current_cpu == "x64" contexts, where
6# X64 code is being compiled.
7if (current_cpu == "x64") {
8  declare_args() {
9    # The micro architecture of x64 cpu. This will be a string like "haswell" or
10    # "skylake". An empty string means to use the default architecture which is
11    # "x86-64".
12    # CPU options for "x86-64" in GCC can be found at
13    # https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
14    # CPU options for "x86-64" in llvm can be found at
15    # https://github.com/llvm/llvm-project/blob/master/llvm/include/llvm/Support/X86TargetParser.def
16    x64_arch = ""
17  }
18
19  if ((is_posix && !is_apple) || is_fuchsia) {
20    if (x64_arch == "") {
21      x64_arch = "x86-64"
22    }
23  }
24}
25