| # Copyright 2017 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| # This header file defines the "host_byteorder" variable. | |
| declare_args() { | |
| host_byteorder = "undefined" | |
| } | |
| # Detect host byteorder | |
| if (host_cpu == "arm64" || host_cpu == "x64") { | |
| host_byteorder = "little" | |
| } else { | |
| assert(false, "Unsupported host CPU") | |
| } |