Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: pnacl/driver/pnacl-translate.py

Issue 583783002: Switch PNaCl lib, include, and translator directories for new layout (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: review Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pnacl/driver/pnacl-driver.py ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import driver_tools 6 import driver_tools
7 import filetype 7 import filetype
8 import ldtools 8 import ldtools
9 import multiprocessing 9 import multiprocessing
10 import os 10 import os
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if env.getbool('USE_STDLIB'): 431 if env.getbool('USE_STDLIB'):
432 args += env.get('LD_ARGS_ENTRY') 432 args += env.get('LD_ARGS_ENTRY')
433 args += env.get('LD_FLAGS') 433 args += env.get('LD_FLAGS')
434 driver_tools.RunDriver('nativeld', args) 434 driver_tools.RunDriver('nativeld', args)
435 435
436 def RunHostLD(infile, outfile): 436 def RunHostLD(infile, outfile):
437 if env.getone('TARGET_OS') == 'linux': 437 if env.getone('TARGET_OS') == 'linux':
438 driver_tools.Run(['objcopy', '--redefine-sym', '_start=_user_start', 438 driver_tools.Run(['objcopy', '--redefine-sym', '_start=_user_start',
439 infile]) 439 infile])
440 lib_dir = (env.getone('BASE_LIB_NATIVE') 440 lib_dir = (env.getone('BASE_LIB_NATIVE')
441 + 'x86-32-%s' % env.getone('TARGET_OS')) 441 + 'x86-32-%s/lib' % env.getone('TARGET_OS'))
442 args = ['gcc', '-m32', infile, '-o', outfile, 442 args = ['gcc', '-m32', infile, '-o', outfile,
443 os.path.join(lib_dir, 'unsandboxed_irt.o'), 443 os.path.join(lib_dir, 'unsandboxed_irt.o'),
444 os.path.join(lib_dir, 'irt_query_list.o'), 444 os.path.join(lib_dir, 'irt_query_list.o'),
445 '-lpthread'] 445 '-lpthread']
446 if env.getone('TARGET_OS') == 'linux': 446 if env.getone('TARGET_OS') == 'linux':
447 args.append('-lrt') # For clock_gettime() 447 args.append('-lrt') # For clock_gettime()
448 driver_tools.Run(args) 448 driver_tools.Run(args)
449 449
450 def RunLLC(infile, outfile, outfiletype): 450 def RunLLC(infile, outfile, outfiletype):
451 env.push() 451 env.push()
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 539
540 ADVANCED OPTIONS: 540 ADVANCED OPTIONS:
541 -mattr=<+feat1,-feat2> Toggle specific cpu features on and off. 541 -mattr=<+feat1,-feat2> Toggle specific cpu features on and off.
542 -mcpu=<cpu-name> Target a specific cpu type. Tunes code as well as 542 -mcpu=<cpu-name> Target a specific cpu type. Tunes code as well as
543 turns cpu features on and off. 543 turns cpu features on and off.
544 -S Generate native assembly only. 544 -S Generate native assembly only.
545 -c Generate native object file only. 545 -c Generate native object file only.
546 --pnacl-sb Use the translator which runs inside the NaCl sandbox. 546 --pnacl-sb Use the translator which runs inside the NaCl sandbox.
547 -O[0-3] Change translation-time optimization level. 547 -O[0-3] Change translation-time optimization level.
548 """ 548 """
OLDNEW
« no previous file with comments | « pnacl/driver/pnacl-driver.py ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698