1 // Copyright 2014 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.
5 #include "base/logging.h"
7 #include "base/win/windows_version.h"
12 const char* GetSandboxArch() {
13 #if defined(ARCH_CPU_ARM_FAMILY)
15 #elif defined(ARCH_CPU_MIPS_FAMILY)
17 #elif defined(ARCH_CPU_X86_FAMILY)
20 // We have to check the host architecture on Windows.
21 // See sandbox_isa.h for an explanation why.
22 if (base::win::OSInfo::GetInstance()->architecture() ==
23 base::win::OSInfo::X64_ARCHITECTURE
)
27 #elif ARCH_CPU_64_BITS
31 #endif // defined(OS_WIN)
34 #error Architecture not supported.