aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-21 16:59:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-21 16:59:46 -0700
commit10b69ba439e415073f2ebbd4b9522d43d70fba70 (patch)
tree6ee2aac4e41e5b996bb283ac890b322f1b53cfe0 /emcc
parentfd900e3a35938dafdc3b5f503ce9ec852dbdfbdb (diff)
parent8f4e931b7edb0755252ee23ff2c8f2edeec3aebd (diff)
Merge pull request #1105 from azmeuk/symlink
Symlink support
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index 3fc9bf79..0ee117ca 100755
--- a/emcc
+++ b/emcc
@@ -904,6 +904,9 @@ try:
prev = newargs[i-1]
if prev in ['-MT', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument
+ 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 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
newargs[i] = ''
if os.path.exists(arg):