[cfe-commits] r63953 - in /cfe/trunk/tools/ccc: ccclib/ToolChain.py test/ccc/darwin-ld-shared.c
Daniel Dunbar
daniel at zuster.org
Fri Feb 6 11:18:58 PST 2009
Author: ddunbar
Date: Fri Feb 6 13:18:58 2009
New Revision: 63953
URL: http://llvm.org/viewvc/llvm-project?rev=63953&view=rev
Log:
ccc/Darwin: Add a missing Darwin argument translation, -shared becomes
-dynamiclib. Re-audited translations to make sure I didn't miss
something else.
Added:
cfe/trunk/tools/ccc/test/ccc/darwin-ld-shared.c
Modified:
cfe/trunk/tools/ccc/ccclib/ToolChain.py
Modified: cfe/trunk/tools/ccc/ccclib/ToolChain.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/ToolChain.py?rev=63953&r1=63952&r2=63953&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/ToolChain.py (original)
+++ cfe/trunk/tools/ccc/ccclib/ToolChain.py Fri Feb 6 13:18:58 2009
@@ -194,6 +194,8 @@
elif arg.opt is args.parser.f_indirectVirtualCallsOption:
al.append(al.makeFlagArg(args.parser.f_appleKextOption))
al.append(al.makeFlagArg(args.parser.staticOption))
+ elif arg.opt is args.parser.sharedOption:
+ al.append(al.makeFlagArg(args.parser.dynamiclibOption))
elif arg.opt is args.parser.f_constantCfstringsOption:
al.append(al.makeFlagArg(args.parser.m_constantCfstringsOption))
elif arg.opt is args.parser.f_noConstantCfstringsOption:
Added: cfe/trunk/tools/ccc/test/ccc/darwin-ld-shared.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/darwin-ld-shared.c?rev=63953&view=auto
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/darwin-ld-shared.c (added)
+++ cfe/trunk/tools/ccc/test/ccc/darwin-ld-shared.c Fri Feb 6 13:18:58 2009
@@ -0,0 +1,7 @@
+// -shared translates to -dynamiclib on darwin.
+// RUN: xcc -ccc-host-system darwin -### -filelist a &> %t.1 &&
+// RUN: xcc -ccc-host-system darwin -### -filelist a -shared &> %t.2 &&
+
+// -dynamiclib turns on -dylib
+// RUN: not grep -- '-dylib' %t.1 &&
+// RUN: grep -- '-dylib' %t.2
More information about the cfe-commits
mailing list