r260266 - clang-cl: Enable plugins on Windows

Ehsan Akhgari via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 11:43:13 PST 2016


Author: ehsan
Date: Tue Feb  9 13:43:13 2016
New Revision: 260266

URL: http://llvm.org/viewvc/llvm-project?rev=260266&view=rev
Log:
clang-cl: Enable plugins on Windows

Modified:
    cfe/trunk/test/Frontend/plugins.c
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Frontend/plugins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/plugins.c?rev=260266&r1=260265&r2=260266&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/plugins.c (original)
+++ cfe/trunk/test/Frontend/plugins.c Tue Feb  9 13:43:13 2016
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -load %llvmshlibdir/PrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
+// RUN: %clang_cl -Xclang -load -Xclang %llvmshlibdir/PrintFunctionNames%pluginext -Xclang -plugin -Xclang print-fns %s 2>&1 | FileCheck %s
 // REQUIRES: plugins, examples
 
 // CHECK: top-level-decl: "x"

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=260266&r1=260265&r2=260266&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Tue Feb  9 13:43:13 2016
@@ -196,7 +196,7 @@ if not lit_config.quiet:
 
 # Plugins (loadable modules)
 # TODO: This should be supplied by Makefile or autoconf.
-if sys.platform in ['win32', 'cygwin']:
+if sys.platform in ['cygwin']:
     has_plugins = (config.enable_shared == 1)
 else:
     has_plugins = True




More information about the cfe-commits mailing list