~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tools/nativize_llvm.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
libs = sys.argv[2:] # e.g.: dl for dlopen/dlclose, util for openpty/forkpty
22
22
 
23
23
print 'bc => clean bc'
24
 
Popen([LLVM_OPT, filename, '-strip-debug', '-o=' + filename + '.clean.bc']).communicate()[0]
 
24
Popen([LLVM_OPT, filename, '-strip-debug', '-o', filename + '.clean.bc']).communicate()[0]
25
25
print 'bc => s'
26
26
for params in [[], ['-march=x86-64']]: # try x86, then x86-64 FIXME
27
27
  print 'params', params
28
 
  Popen([LLVM_COMPILER] + params + [filename + '.clean.bc', '-o=' + filename + '.s']).communicate()[0]
 
28
  Popen([LLVM_COMPILER] + params + [filename + '.clean.bc', '-o', filename + '.s']).communicate()[0]
29
29
  print 's => o'
30
30
  Popen(['as', filename + '.s', '-o', filename + '.o']).communicate()[0]
31
31
  if os.path.exists(filename + '.o'): break