diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 16:32:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 16:32:40 -0800 |
commit | ba17804f62fe81e3022ba196cc54ee0dad88e337 (patch) | |
tree | fdd664554b4529f627beac4cc91fb0ea2dbbef0c /emcc | |
parent | 394bbcf08eb9db1dbbf8d421e6b154827bead9e6 (diff) |
support a (js) target when emcc is given two input files
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,6 @@ elif use_compiler: specified_target = target target = specified_target if specified_target is not None else 'a.out.js' # specified_target is the user-specified one, target is what we will generate - if specified_target: assert len(input_files) == 1, 'If a target is specified, there should be exactly one input file' target_basename = unsuffixed_basename(target) @@ -344,6 +343,7 @@ elif use_compiler: shutil.move(input_file + '.o', input_file + '.bc') if specified_target: + assert len(input_files) == 1, 'If a target is specified, and we are compiling to bitcode, there should be exactly one input file (c.f. gcc for why)' shutil.move(input_files[0] + '.' + final_suffix, unsuffixed_basename(specified_target) + '.' + final_suffix) exit(0) |