diff options
| author | Éloi Rivard <azmeuk@gmail.com> | 2013-04-27 10:41:49 +0200 | 
|---|---|---|
| committer | Éloi Rivard <azmeuk@gmail.com> | 2013-04-27 10:49:40 +0200 | 
| commit | ff5cad0ba476f74ee4743fb91bf4e256dfccde04 (patch) | |
| tree | 977665591f2f274df7b98de84ec9868bcb5b1b53 | |
| parent | 1796e1798ec0664d937644308f016d65af7b216a (diff) | |
* Added symlink support.
| -rwxr-xr-x | emcc | 6 | 
1 files changed, 5 insertions, 1 deletions
@@ -913,8 +913,12 @@ try:        prev = newargs[i-1]        if prev in ['-MT', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument -    if not arg.startswith('-') and (arg.endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES) or shared.Building.is_ar(arg)): # we already removed -o <target>, so all these should be inputs +    if not arg.startswith('-') and (arg.endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES) or shared.Building.is_ar(arg) or (os.path.islink(arg) and os.path.realpath(arg).endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES))): # we already removed -o <target>, so all these should be inputs        newargs[i] = '' + +      if (os.path.islink(arg) and os.path.realpath(arg).endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES)): +        arg = os.path.realpath(arg) +        if os.path.exists(arg):          if arg.endswith(SOURCE_SUFFIXES):            input_files.append(arg)  | 
