1 // Copyright (c) 2012 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 "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
6 #include "ppapi/native_client/src/trusted/plugin/nexe_arch.h"
9 // The list of supported ISA strings for x86. See issue:
10 // http://code.google.com/p/nativeclient/issues/detail?id=1040 for more
11 // information. Note that these string are to be case-insensitive compared.
12 const char* const kNexeArchX86_32
= "x86-32";
13 const char* const kNexeArchX86_64
= "x86-64";
17 const char* GetSandboxISA() {
18 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 64) && \
19 (defined(NACL_LINUX) || defined(NACL_OSX))
20 return kNexeArchX86_64
; // 64-bit Linux or Mac.
22 return NaClOsIs64BitWindows() == 1
23 ? kNexeArchX86_64
// 64-bit Windows (Chrome, Firefox)
24 : kNexeArchX86_32
; // everything else.