[PATCH] clang-cl: Use MS C++ ABI
Hans Wennborg
hans at chromium.org
Thu Aug 8 11:49:20 PDT 2013
Hi rnk,
This turns on "-cxx-abi microsoft" when in clang-cl mode.
http://llvm-reviews.chandlerc.com/D1329
Files:
lib/Driver/Tools.cpp
test/Driver/cl-abi.c
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -3724,6 +3724,9 @@
// which most users want.
CmdArgs.push_back("--dependent-lib=oldnames");
}
+
+ CmdArgs.push_back("-cxx-abi");
+ CmdArgs.push_back("microsoft");
}
void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
Index: test/Driver/cl-abi.c
===================================================================
--- /dev/null
+++ test/Driver/cl-abi.c
@@ -0,0 +1,8 @@
+// Don't attempt slash switches on msys bash.
+// REQUIRES: shell-preserves-root
+
+// Note: %s must be preceded by --, otherwise it may be interpreted as a
+// command-line option, e.g. on Mac where %s is commonly under /Users.
+
+// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck %s
+// CHECK: "-cxx-abi" "microsoft"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1329.1.patch
Type: text/x-patch
Size: 867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130808/9ed19bf5/attachment.bin>
More information about the cfe-commits
mailing list