[PATCH] D11237: Add support for -rtlib option and -stdlib option to the mingw driver

Reid Kleckner rnk at google.com
Wed Jul 22 08:55:28 PDT 2015


rnk added inline comments.

================
Comment at: tools/clang/lib/Driver/Tools.cpp:7845
@@ -7838,2 +7844,3 @@
   bool isAndroid = Triple.getEnvironment() == llvm::Triple::Android;
+  bool isWindows = Triple.getOS() == llvm::Triple::Win32;
   bool StaticLibgcc = Args.hasArg(options::OPT_static_libgcc) ||
----------------
I had to change this to `Triple.isOSCygMing()` to make the existing windows-cross toolchain driver test pass. It expected --as-needed to be passed along.


http://reviews.llvm.org/D11237







More information about the cfe-commits mailing list