return False
return True
-def _SetupLinuxHostDir(env, nacl_dir):
- # Use the 32-bit path by default, but fall back to 64-bit if the 32-bit does
- # not exist.
- dir_template = os.path.join(nacl_dir, 'toolchain', 'linux_x86',
- 'pnacl_newlib', 'host_%s')
- dir_32 = dir_template % 'x86_32'
- dir_64 = dir_template % 'x86_64'
- driver_tools.AddHostBinarySearchPath(
- dir_32 if os.path.exists(dir_32) else dir_64)
-
def SetupNaClDir(env):
test_dir = os.path.abspath(dirname(__file__))
nacl_dir = dirname(dirname(dirname(test_dir)))
# implementation of -B
test_dir = os.path.abspath(dirname(__file__))
nacl_dir = dirname(dirname(dirname(test_dir)))
- if sys.platform == 'darwin':
- host_arch = 'x86_64'
- elif sys.platform.startswith('linux'):
- _SetupLinuxHostDir(env, nacl_dir)
- return
- elif sys.platform in ('cygwin', 'win32'):
- host_arch = 'x86_32'
os_shortname = driver_tools.GetOSName()
host_dir = os.path.join(nacl_dir, 'toolchain',
'%s_x86' % os_shortname,
- 'pnacl_newlib',
- 'host_%s' % host_arch)
+ 'pnacl_newlib')
driver_tools.AddHostBinarySearchPath(host_dir)
# A collection of override methods that mock driver_env.Environment.