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"
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"
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to